GIT - Can't ignore .suo file

前端 未结 3 1117
鱼传尺愫
鱼传尺愫 2021-01-30 02:59

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

3条回答
  •  半阙折子戏
    2021-01-30 03:43

    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.

提交回复
热议问题