Git 删除 .gitignore 生成之前上传的文件

259 阅读1分钟

清除缓存

git rm -r --cached .
git add .

提交记录

git commit -m "chore: 清除缓存。"
git push