已经添加到版本库,如何让git忽略?

git update-index --assume-unchanged PATH

path代表你的文件,比如我要忽略database.php:
图片描述

使用gitingore无效,她只适用那些还未添加到版本库的文件

评论

暂无评论