.gitignore and Visual Studio project: Ignore bin/Debug directory but not bin/Release directory

后端 未结 9 918
一个人的身影
一个人的身影 2021-01-30 03:51

I have a C# Visual Studio project in a git repository. I want to ignore the contents bin/Debug directory but not the contents of the bin/Release\' dire

9条回答
  •  孤独总比滥情好
    2021-01-30 04:26

    You shouldn't have to delete anything. After you added the .gitignore file, run this command to clear the cache, then stage and commit again:

    git rm -r . --cached
    

提交回复
热议问题