修改 .gitignore 后生效方法
懒得每次网上查,记录到自己博客
git rm -r --cached . # 清除缓存
git add . # 追踪文件
git commit -m "更新.gitignore" # 注释提交
git push origin master # 推送远程
修改 .gitignore 后生效方法
懒得每次网上查,记录到自己博客
git rm -r --cached . # 清除缓存
git add . # 追踪文件
git commit -m "更新.gitignore" # 注释提交
git push origin master # 推送远程