gitignore的使用
gitignore的使用
当一开始.gitignore初始化后,新添加忽略文件后,git提交却无法真正忽略时,使用以下方式清除本地缓存:
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
Last updated
Was this helpful?
gitignore的使用
当一开始.gitignore初始化后,新添加忽略文件后,git提交却无法真正忽略时,使用以下方式清除本地缓存:
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
Last updated
Was this helpful?