serhii.net

In the middle of the desert you can say anything you want

01 Nov 2021

211101-2011 Git reset types

An incredibly clear explanation, copypasted from StackOverflow, about the flavours of git reset --xxx HEAD~1

In the simplest terms:

  • --soft: uncommit changes, changes are left staged (index).
  • --mixed (default): uncommit + unstage changes, changes are left in working tree.
  • --hard: uncommit + unstage + delete changes, nothing left.
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus