Github :git push檔案過大報錯remote: error: GH001: Large files detected.處理方法
除我以外的眾所周知,Github建議上傳的檔案大小要求是不超過50M,允許的大小是不超過100M,如果你實在有需要,可以使用git lfs大儲存,網址:https://git-lfs.github.com(當然我沒試過,畢竟只有少數超過大小的檔案,不傳不就行啦dog
今天我在push本地倉庫到Github之前往倉庫裡就加了一個108M的檔案,之後依次執行push操作gg
直接屈服掉,爺不傳了
首先執行git log
檢視你之前的提交日誌(比如我的就很簡單嗯/複雜一點地久仔細看下時間進行判斷吧)
然後執行git reset XXX
,恢復到你沒有新增大檔案的那次commit記錄,實在是妙
完了之後再按命令去git push 即可,提前恭喜成功~~~~~~
報錯到解決問題全過程截圖?
相關文章
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- git上傳大檔案!git push 報錯 ! [remote rejected] main -> main (pre-receive hook declined) error_ failed to push some refs to 'xxxGitREMAIHookError
- Too many open files報錯處理
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- git - git push origin master 報錯GitAST
- git上傳檔案時報錯常見的處理辦法Git
- Error: --recode does not support multipass recoding of very large files.Error
- git push出現unpack failed: error Missing tree錯誤的解決方法GitAIError
- 錯誤處理:如何通過 error、deferred、panic 等處理錯誤?Error
- crfclust.bdb檔案過大處理CRF
- 初次Push程式碼到Github報錯Github
- Git push時報錯:fatal: Could not read from remote repository. Please make sure you have the correct access rightsGitREM
- Git處理二進位制檔案Git
- git和TortoiseGit pull和push報錯:git did not exit cleanlyGit
- git pull遇到錯誤:error: Your local changes to the following files would be overwritten by merge:GitError
- git使用報錯fatal: remote origin already exists.GitREM
- 15-錯誤處理(Error)Error
- vscode關於json檔案新增註釋報錯處理VSCodeJSON
- Python 如何處理大檔案Python
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- 初次git提交程式碼報錯:Push to origin/master was rejectedGitAST
- iis 下 swfupload 上傳大檔案 卡頓 404 錯誤 等問題處理方法
- 記一次報錯 symlink(): Protocol error 問題處理ProtocolError
- git post資料過大報錯-Out of memoryGit
- linux 透過xmllint處理xml檔案LinuxXML
- mysql匯入sql檔案報錯 ERROR 2013 2006 2002MySqlError
- .gitignore檔案配置以及gitee提交報Push rejected...錯誤解決Gitee
- 【六褘-Git】程式碼提交碼雲,報錯 fatal: refusing to merge unrelated histories處理方法;Git
- 【ERROR】ORA-8103錯誤分析處理Error
- java讀取大檔案並處理Java
- Github錯誤之failed to push some refs toGithubAI
- git push fatal: HttpRequestException encountered. An error occurred while sending the requestGitHTTPExceptionErrorWhile
- 如何處理錯誤訊息Please install the Linux kernel header filesLinuxHeader
- 【Jenkins】data stream error|Error cloning remote repo ‘origin‘ 錯誤解決JenkinsErrorREM
- Python之錯誤異常和檔案處理Python
- Day03:檔案開啟;錯誤處理
- 執行遷移檔案報錯: Syntax error or access violation: 1166 ...Error
- GIT add檔案報錯:git warning: LF would be replaced by CRLF 解決方案Git