Git
Revision as of 04:16, 3 January 2019 by imported>Jeremy-busk
Git Common Commands
git reset --soft HEAD~1 # Keep changes
git reset --hard HEAD~1 # Discard changes
ref: https://www.git-tower.com/learn/git/faq/undo-last-commit
git reset --soft HEAD~1 # Keep changes
git reset --hard HEAD~1 # Discard changes
ref: https://www.git-tower.com/learn/git/faq/undo-last-commit