Back to [[git:main-git|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.