我嘗試發佈,這超過100MBGIT錯誤 - 這超過了GitHubs文件大小限制 - 但該文件已被刪除
然後我看着它,實現GitHub上有一個限制的文件。
雖然它看起來像我可以進行更改使用較大的文件Git lfs - "this exceeds GitHub's file size limit of 100.00 MB"這不是我的目標。相反,我編輯的文件,現在下80MB左右
的問題是,當我嘗試git pull
(或同步使用Web應用程序),我仍然可以說這個文件是太大了......
我是隻能猜測git已經得到了不再存在的東西的句柄,但我不知道如何從試圖上傳這個文件中刪除它。
這是我的努力,它也顯示失敗(第一行)。這是從Git的外殼
remote: error: File Photoshop/Originals/homePage.psd is 119.97 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/company/site.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/company/site.git'
G:\websites\GitHub\site\Website\site[master ↑3 +0 ~1 -0 !]> git rm --cached Photoshop/Originals/homePage.psd
fatal: pathspec 'Photoshop/Originals/homePage.psd' did not match any files
G:\websites\GitHub\site\Website\site [master ↑3 +0 ~1 -0 !]> git rm Photoshop/Originals/homePage.psd
fatal: pathspec 'Photoshop/Originals/homePage.psd' did not match any files
G:\websites\GitHub\site\Website\site [master ↑3 +0 ~1 -0 !]>
也許文件仍然是存儲庫的一部分。從一個提交中刪除它並不意味着它在早期提交中不存在。過濾分支在這裏可能會有幫助。 –
'git filter-branch'剛剛返回'不能重寫分支:你有未分離的變化' – MyDaftQuestions
不要盲目地運行過濾分支。找出該文件正在發生什麼,然後從那裏開始。不是我的downvote。 –