We're getting git installed here at work for a project and I'm playing around with it with another co-worker.
I've been resolving some choreographed merge conflicts but I'm ending up with a bunch of extra files I don't want. They are .BACKUP .BASE, .LOCAL and .REMOTE files. Based on those names, they seem to be coming from resolving my merges. Some exact file names I'm getting are:
- index.shtml.BACKUP.16908.shtml
- index.shtml.BASE.16908.shtml
- index.shtml.LOCAL.16908.shtml
- index.shtml.REMOTE.16908.shtml
- I also have another set of the files above but ending in .21384, assuming from another merge attempt
Is it possible to not save these files? As you can imagine, it's kind of annoying to now have 9 versions of index.shtml. I'm using git's built-in merge tool, tortoisemerge.
I ran into something similar by running git log, it apparently created a "df" file. That was easy enough to deal with by just including it in a .gitignore file. I don't want to just accumulate files like above throughout the project, though.
git clean -i
will interactively lead you thru deleting these files. But beware, it will also offer to delete any other files that are not ("yet") under version control.git merge
.