我在我的舊提交中添加了一個文件,並且沒有推送該提交,然後我從目錄中刪除了該文件。從那以後,我沒有更多的變化,並增加了更多的提交和現在每次我嘗試當我做git push -u origin master
git試圖上傳已經手動刪除的文件
Counting objects: 58, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (58/58), done.
Writing objects: 100% (58/58), 197.83 MiB | 370.46 MiB/s, done.
Total 58 (delta 44), reused 0 (delta 0)
remote: Resolving deltas: 100% (44/44), completed with 10 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 7db8d77e8595ae0da9cc34aa2ab1c4d0
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File public/uploads.zip is 197.85 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/repo-name
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/repo-name'
的文件中提及uploads.zip
之前已經手動刪除推我面對這個錯誤的代碼。所以這個文件不存在於dir中。
當我做git log origin/master..master
我甚至沒有看到列表中的文件。
這裏是如果你的git倉庫一直嘗試上傳大文件,你可能要和檢查任何跟蹤(後來刪除)大文件的git status
link
嘗試'git的RM公共/ uploads.zip' –
我同意@PanLong – acornagl
'致命:pathspec '公共/ uploads.zip' 不匹配任何files'文件甚至沒有在dir @PanLong –