I\'m trying to work using Git with a colleague, in an application written in C#.
We have added the entry "project1.suo" to the .gitignore file but every time o
I had the same problem. Ikke's solution helps, but do not forget to remove the *.suo entry from your .gitignore, if it is there. After the file is corrected, do
git add **/*.suo
I always back to this question to use the method in the answer but i found a better solution which is to ignore the changes to this file . The method is
git update-index --assume-unchanged project1.suo
or
git update-index --assume-unchanged .vs/config/applicationhost.config
To undo this use --no-assume-unchanged
git doesn't ignore files that have been added to the repository. If you want to get it ignored, you have to delete the file from the repository:
git rm --cached project1.suo
git commit -m "Delete suo file from repository"
This will delete the file from the repository, while it's still on your harddrive.