zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Git 修改.gitignore文件 忽略提交没有生效问题解决方法

文件方法Git 解决 修改 没有 提交 生效
2023-09-27 14:27:15 时间

先把本地缓存删除(改变成未track状态),然后再重新提交。

git rm -r --cached .

git add .

git commit -m 'reset update .gitignore'

git push