If dvc add fails it keeps new created `.gitignore`. See repro script from #1640. DVC have to revert all the changes after failing command or output warning if it is not possible.