So I am trying to use git push on a fairly large repo, but it always seems to get stuck at the end at POST git-receive-pack (71245363 bytes)
. I have tried this solution but it doesn't seem to have any effect. Thanks in advance...
$ git push origin master --verbose
Pushing to https://github.com/obiwac/AQUA-2.X-x86
Username for 'https://github.com': Obiwac
Password for 'https://[email protected]':
Counting objects: 28, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (23/23), done.
Writing objects: 100% (28/28), 67.94 MiB | 7.77 MiB/s, done.
Total 28 (delta 6), reused 1 (delta 0)
POST git-receive-pack (71245363 bytes)
Pretty old question, but I wanted to give closure since I've long since fixed this.
Previous to me trying to push my repo, I had accidentally committed a very big file and, trying to resolve the issue, proceeded to delete it and create another commit.
What I didn't know is that, even if you delete it afterwards, git still keeps a record of that file and that commit, and it still needs to push it.
The solution was thus to "undo" the last commit, by running something such as this:
$ git reset --hard HEAD~1
This will put our head back one commit. The --hard
argument just means we want to discard all the changes we introduced, instead of preserving them.
Hope this helps someone somewhere, and have a nice evening!