Reputation: 1729
I am using Git now for a short time, and I have experienced a few annoying things. I have a few branches now, however, when I switch branches, my config files are being overwritten (they are in my .gitignore). How is this possible, and what things can I do to find out what causes this issue?
Upvotes: 0
Views: 45
Reputation: 2069
make sure, that config-files are not present in git repositories. .gitignore
merely prevents changes from being committed, but doesn't ignore files which are already committed.
So, git rm yourconfig.file
in every branch, put local copies in directories and it will work just fine
Upvotes: 2