1.先将需要忽略的文件加入《.gitignore》文件的列表中
2.针对之前已经提交过的文件,需要移除该文件,之后再创建该文件就会被忽略
git rm --cached ./filename.js

1.先将需要忽略的文件加入《.gitignore》文件的列表中
2.针对之前已经提交过的文件,需要移除该文件,之后再创建该文件就会被忽略
git rm --cached ./filename.js
本文标题:gitignore忽略文件
本文链接:https://www.haomeiwen.com/subject/fupwtdtx.html
网友评论