忽略git已经提交的文件的方法

第一步:删除追踪状态   git  rm  -r  --cached     ##原理是把这个文件从index区删除

第二步:添加   git add .

第三步:提交   git commit -m 'update .gitignore'

第四步:强制push   git push -f

发布了4 篇原创文章 · 获赞 6 · 访问量 1203

猜你喜欢

转载自blog.csdn.net/qq_33210715/article/details/86167140