Comments about How to Delete Commits From Remote in Git

Good job!

😊+

0 0

what happen if someone of my team had already pulled that “mistake commit” before I delete it from remote?

😊+

0 1

This it NOT deleting the commits, you just don’t reference them anymore. Big difference

😊+

0 0

  1

man, it took me 1 month to try to understand what you were able to explain in a few words. it cost!

😊+

1 0

4 years ago

Just a short add to the above text. Force push does not actually delete remote commits. It changes the pointer on the remote to point to a different commit. Depending on what your remote actually is (gitlab/github/other) it might take a significant time (or forever) until your now non-referenced commit is actually garbage collected. So do not assume that this actually cleans up anything that was leaked.

😊+

1 0

4 years ago

Great breakdown on this topic! Good job

😊+

0 0

Trending Topics

blockchaincryptocurrencyhackernoon-top-storyprogrammingsoftware-developmenttechnologystartuphackernoon-booksBitcoinbooks