The error message "git did not exit cleanly (exit code 1)" is a very general error message, in most of scenarios, just clean up local repository to resolve it, but sometimes it not actully caused by "not clean".
In my case, the reason is I tried to push large file that size over the postbuffer (default as 1M).
Edit .gitconfig
, set http.postBuffer
to larger amout.
- Set post buffer to 10M :
git config --global http.postBuffer 102400
- Check result :