User Tools

Site Tools


git:git-recover-from_tto-large-push-failure

Back to git main page

When attempting to push a too large commit, somme server will issue an error like

remote: fatal: pack exceeds maximum allowed size

To try recovering from this the push should be split in several smaller push. But first, we need to reverse the last commit without cancelling the changes :

git reset HEAD^

The list of modified and untracked files can be obtained with status :

git reset HEAD^

Then select some modifications, add them, commit and push them.

# for example , add only the changes in some_folder
git add some_folder
git commit -m "commit msg"
git push

Repeat it until all changes are committed and pushed.

git/git-recover-from_tto-large-push-failure.txt · Last modified: 2023/03/31 12:17 by 127.0.0.1