如果是已经commit
之后修改.gitignore
,是不会立刻生效的,
需要使用
- git rm -r . --cached
清除一下缓存区,然后
- git add -A
- git commit
另外有关于C#的.gitngnore
模板
.vs
/build/
*.suo
*.user
_ReSharper.*/
*.sdf
bin/
obj/
Debug/
Release/
*.opensdf
*.tlog
*.log
TestResult.xml
*.VisualState.xml
Version.cs
Version.h
Version.cpp
以及需要更多的话,可以查看
评论 (0)