Git by Patrik

Delete latest commit but keep files

I want to delete my latest (local) commit but keep my files

git reset HEAD^1

Comments

Leave a Comment

All fields are required. Your email address will not be published.