While checkout to master branch, I got:
Error: The following untracked working tree files would be overwritten by
Please move or remove them before you can switch branches.
So I have remove them (I've backup those files somewhere else outside the
repo), and I was able to switch again.
The reason I've getting this it's because:
dev is ignoring those files. master isn't, because no .gitignore file is
present there. Perhaps, when I was setting branches, I forgot it somehow...
They should both ignore those files.
Plus, when I push this to remote repos, those changes should be propagated
for those remote repos as well. (I'm using a bare repo).
My question is:
*How can we add that .gitignore file to the master, so that this doesn't
happen again ?*
Thanks in advance,*
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To view this discussion on the web visit
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at