FrontendDeveloper.in

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.

Back to all Git questions
Get LinkedIn Premium at Rs 399