(以防万一它的确与众不同,这是在Github企业)不能推,因为我本地提交的文件过大
我不能更改推出回购,因为我在不知不觉中犯两个过大的文件到我的本地回购。这两个文件超出了github允许的大小。我现在在本地进行了几次落后的承诺。我不关心大文件,并从此删除它们,但git push origin
仍然每次都失败。
当我检查github中的最后一次提交时,回购时间落后了10天,这意味着不仅大文件失败,而且整个推送失败。我显然无法推动我的回购。每次我尝试,我得到这个错误:
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: File lib/abc.csv is 482.56 MB; this exceeds GitHub Enterprise's file size limit of 150.00 MB
remote: error: File lib/xyz.csv is 604.82 MB; this exceeds GitHub Enterprise's file size limit of 150.00 MB
To https://github.foobar.com/userx/myrepo
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.foobar.com/userx/myrepo'
- 我要推我目前的本地回购出到GitHub库。
- 我根本不在乎过大的文件。我不需要需要推送他们到github。
- 我的本地回购是github回购之前的许多提交。过大文件的提交并不是最新的。
有没有办法解决这个问题,而不是将我的本地回购一路追回到大文件添加的提交?
git状态告诉你什么? – zee
还有什么git remote -v告诉你 – zee
'git status':我13岁提交原产地/主人。 'git remote -v':列出repo url两次:“origin(fetch)”和“origin (push)”。 –