1、移除版本控制
git rm --cache file //忽略文件
git rm --cache dir -r //忽略整个目录
2、写入 .ignore 文件
file
dir
3、提交忽略
git commit -m "add ignore"
4、push到远程代码库
git push
1、移除版本控制
git rm --cache file //忽略文件
git rm --cache dir -r //忽略整个目录
2、写入 .ignore 文件
file
dir
3、提交忽略
git commit -m "add ignore"
4、push到远程代码库
git push
本文标题:Git已在版本控制中的文件重新加入忽略列表中
本文链接:https://www.haomeiwen.com/subject/gadxeqtx.html
网友评论