git过大超容量后怎么办?
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' 失败
```
这时可以:
1. 用 `git reset --soft HEAD^` 撤回一次或多次 commit,修改的文件内容不会被撤销
2. 修改 .gitignore 文件,把某些不必要的大文件的相对路径加进去,表示不上传这些文件到github
3. 响应 .gitignore 的修改:git rm -r --cached .; git add .; git commit -m 'update .gitignore '
然后就可以 git push 了
```
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' 失败
```
这时可以:
1. 用 `git reset --soft HEAD^` 撤回一次或多次 commit,修改的文件内容不会被撤销
2. 修改 .gitignore 文件,把某些不必要的大文件的相对路径加进去,表示不上传这些文件到github
3. 响应 .gitignore 的修改:git rm -r --cached .; git add .; git commit -m 'update .gitignore '
然后就可以 git push 了
全部评论
这样也可以啊
相关推荐
牛客97318835...:放心,终面过了还得排序呢,某组hr和我说今年就招一个
点赞 评论 收藏
分享
10-14 21:06
西北农林科技大学 数据分析师 点赞 评论 收藏
分享

查看9道真题和解析