git push時(shí)終端報(bào)錯(cuò):
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
fatal: The remote end hung up unexpectedly
你已經(jīng)把大文件寫入本地.git歷史中。
你需要把它從commit歷史,以及.git庫里移除掉。
可以使用git filter-branch --tree-filter 'rm -f 文件名' HEAD命令

參考:https://git-scm.com/book/zh/v1/Git-工具-重寫歷史#核彈級(jí)選項(xiàng):-filter-branch
總結(jié)
到此這篇關(guān)于解決git誤commit大文件導(dǎo)致不能push問題的文章就介紹到這了,更多相關(guān)git誤commit大文件導(dǎo)致不能push內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
您可能感興趣的文章:- 解決使用commit提交大文件無法推送到遠(yuǎn)程庫問題及git rebase使用詳解
- git如何撤銷commit的方法(未push)
- Git回退代碼到某次commit的實(shí)現(xiàn)方法
- git修改已commit的注釋信息實(shí)現(xiàn)
- 淺析git server“丟失”commit問題
- Git發(fā)現(xiàn)git push origin master 報(bào)錯(cuò)的解決方法
- 解決fatal:remote error:You can''t push to git://github.com/username/*.git問題的辦法