我在我的旧提交中添加了一个文件,并且没有推送该提交,然后我从目录中删除了该文件。从那以后,我没有更多的变化,并增加了更多的提交和现在每次我尝试当我做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 –