- .gitignore 中添加:
-
#Common useless files
*.zip
*.jar
*.exe[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
x64/
build/
bld/
[Bb]in/
[Oo]bj/
*/web/obj/
*/web/bin/Debug/
Release/
obj/
source/UI/Innocellence.Web/App_Data/Logs/
-
- 打开 git bash
- 输入命令 进入文件夹:
-
cd d:
cd folder
3. 执行命令:
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
-