修改.gitignore在项目中生效
2017-12-03 本文已影响5人
OoYoO
修改.gitignore文件后操作如下
1、清除缓存
git rm -r --cached .
2、重新添加trace files
git add .
3、提交并添加注释
git commit -m "update .gitignore"
4、同步到远程仓库
git push origin master/develop
修改.gitignore文件后操作如下
1、清除缓存
git rm -r --cached .
2、重新添加trace files
git add .
3、提交并添加注释
git commit -m "update .gitignore"
4、同步到远程仓库
git push origin master/develop