git 提交了大文件,lfs 也没用了,显示
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: 推送一些引用到 **********:shiwanghua/ANN_VECTOR_RETRIEVAL.git' 失败
这时可以:
-
用
git reset --soft HEAD^
撤回 commit,每运行一次就撤回一次,修改的文件内容不会被撤销 -
修改 .gitignore 文件,把某些不必要的大文件的相对路径加进去,表示不上传这些文件到github
-
响应 .gitignore 的修改:git rm -r --cached .; git add .; git commit -m 'update .gitignore ’
然后就可以 git push 了