Undo the last git commit without losing the changes

Public, Git

harrylevine

Created: Mar 18, 2018     Updated: Mar 18, 2018


git reset --soft HEAD~1

https://www.git-tower.com/learn/git/faq/undo-last-commit