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 one of us has to commit the project, Git seems to tell us to commit the file "project1.suo" as well.
We have tried many methods to add the file in .gitignore like that:
*.suo project1.suo c:\project\project1.suo
We cannot fix this problem.
It looks like you want to use the **/*. suo pattern to ignore files like this in all directories. The pattern you have used only applies to the project root. "on the next commit it gets pushed" No.
The . suo should NOT be removed from .
suo) file is a structured storage, or compound, file stored in a binary format. You save user information into streams with the name of the stream being the key that will be used to identify the information in the . suo file.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With