I asked a similar question the other day, but i think this is different enough to make it worth another question
I am currently using BitBucket and Source tree with my project, here is my git ignore.
My issue is that when I switch PC and pull as soon as i open the project, without doing anything it gives me about 1000 meta files to commit and a project settings file and a c sharp assembly file, surely this cant be right. Thoughts?
I do have force text enabled and i do have meta files visible.
Thanks Everyone.
EDIT
Here is a snapshot of the meta files.
My guess is that these files are indeed in your repository (perhaps they were added before you updated your
.gitignore
), that they containCRLF
line endings, and that on your new PCgit core.autocrlf
returnstrue
. If that is indeed the case, then git plans to convert all thoseCRLF
s intoLF
s, and thus considers your local copy "different" than what is in the repo. Try settingcore.autocrlf
to false to stop git from doing that. If that fixes it, a good idea would be to add the following to your.gitattributes
file:That will disable such end of line processing no matter what machine the repo is on in the future.