gitignore重新使能

重写文件后需要使能gitignore需要删除缓存,添加所有文件 提交 推送

 

git rm -r --cached .             # 删除缓存
git add .                        #重写添加文件,ignore的文件不填加
git commit -m "add gitignore"
git push origin master

 

posted @ 2023-03-10 15:26  浅情1314  阅读(33)  评论(0编辑  收藏  举报