High Tech Sorcery

Git: Untracked working tree file would be overwritten by merge

by on Mar.23, 2011, under Development

I ran into a merge conflict when a branch had changed a file and I was merging in another branch where the file had been deleted and placed in gitignore.   Some suggestions on handling this here:

I used:

  • git checkout <your-branch> -f

I then need to “git rm” the file in the branch where it had been modified.  I’m not sure what exactly happened to the file since I didn’t care much about it.


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...