2016-03-04 298 views
-1

我有repoA。我正在從repoA中拉出並開始一個新的repoB。 當我開始推動使用下面的命令到repoB:當git倉庫文件大小超過限制,推送被拒絕

git的遠程添加了newName [email protected]:用戶名/ foo.git //這是裸

GIT中推-u了newName主

Counting objects: 6378, done. 
Delta compression using up to 8 threads. 
Compressing objects: 100% (5974/5974), done. 
Writing objects: 100% (6378/6378), 126.55 MiB | 5.11 MiB/s, done. 
Total 6378 (delta 3030), reused 2533 (delta 388) 
remote: error: GH001: Large files detected. 
remote: error: File seqana/testdnaqualstore.dqc is 108.42 MB; this exceeds GitHub Enterprise's file size limit of                100.00 MB 

即使我已經從repoA中刪除了大文件, 推送到repoB仍然得到完全相同的錯誤消息。 我已嘗試解決此問題的所有張貼方法。所有 仍然無法正常工作。這是一個測試文件,在存儲庫中不必是 。我可以完全從repoA中刪除它。 我想知道有人提出瞭解決方案。

repoA具有較大的文件大小限制。

+0

刪除後,你推(repoA)?似乎該文件仍在repoA .. –

+0

最後,我唯一的解決方案是刪除大文件後啓動一個新的存儲庫。 –

回答

2

從提交歷史中刪除文件並重試將回購數據推送到新的存儲庫。 您可以使用「git filter-branch」或「BFG Repo-Cleaner」從歷史記錄中完全刪除文件。欲瞭解更多詳情,請按照"delete file from git history"。希望這會解決你的問題。