github项目发布后修改忽略文件
按照搜到的结果,如下操作即可
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
但执行最后一句会报错
error: pathspec '.gitignore’.' did not match any file(s) known to git
把最后一行的单引号改成双引号就可以了。
git commit -m "update .gitignore"
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
但执行最后一句会报错
error: pathspec '.gitignore’.' did not match any file(s) known to git
把最后一行的单引号改成双引号就可以了。
git commit -m "update .gitignore"