Git question detail
How do you undo the last commit but keep your changes?
Use git reset --soft HEAD1 to keep changes staged, or git reset --mixed HEAD1 to keep changes unstaged in your working tree.
Git question detail
Use git reset --soft HEAD1 to keep changes staged, or git reset --mixed HEAD1 to keep changes unstaged in your working tree.