github-git push大文件錯誤

Github只允許上傳最大100MB的文件,如果超過,則會被server reject

則需:

git filter-branch --force --index-filter "git rm --cached --ignore-unmatch Project1/Project1.1\ Sample\ Project/output.txt" --prune-empty --tag-name-filter cat -- --all

git commit --amend -CHEAD

git push origin master

注意要在.git文件夾目錄下執行以上命令

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章