Topic: Git Basics

Undo your last commit – Git

Preview

To undo your last commit, enter the following command in your terminal:

git reset --soft HEAD~1

To view the full tutorial, sign up for a free trial on our Sign Up page.