re: How To Use Git: A Reference Guide VIEW POST

FULL DISCUSSION
 

Thank for this,
I think it's also worth mentioning about git revert 1fc6665 which contrary to git reset --hard 1fc6665 will not remove completely the commit from the history but will create a new commit that reverses the specified commit and won't delete it from the history as git reset does, so that if later you realize that those changes were not so bad you can come back to them easily again 😄
NB: With git reset, you'll be oblige to git push -f (Forcing updating of the upstream)

code of conduct - report abuse