Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GIT - Can't ignore .suo file

Tags:

git

c#

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.

like image 419
Laxedur Avatar asked Jul 24 '12 09:07

Laxedur


People also ask

How do I ignore a .SUO in git?

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.

Should .SUO be ignored?

The . suo should NOT be removed from .

What is .SUO file?

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.


1 Answers

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.

like image 186
Ikke Avatar answered Oct 04 '22 12:10

Ikke