✅ How to completely cancel a git push?
Disclaimer:
I'm very new to Git (learning it since yesterday)
Background:
I have a private remote repo on Github. After I pushed my code there, I decided to also push some assets (small .ppm and .txt files). And here's main problem: in one of my asset folders I have a really big .ppm file (77 MB) about which I've completely forgot. I don't want it in my remote repo, because it's currently unused and sending it to Github can consume some of my precious internet bandwidth.
Problem:
I don't know, how to completely cancel this push. It stops after pressing CTRL+C or closing the terminal, but when I do
git push
again, it restarts. It's really slow and also consumes my RAM and CPU, which is really inconvenient.8 Replies
so when you do
git push
, you tell git to push your local commits to the remote (github)
as long as your local commit with the 77mb file exists, it will want to push that
you need to modify the local commit that adds that 77mb file to no longer do sothanks, I think I got it
sounds about right
thank you
np. git has a learning treshhold for sure, but its sooooo good once you get used to it 🙂
I'll
/close
it in a momentit does a lot more than just "move latest changes to github"
thanks, it works now 😃