Cheat Sheet: Cancel last git commit and keep files

This blog post is just a short cheat sheet, and this is the command that cancels your last git commit and keeps your local files.

git reset --soft HEAD^

That’s all 😉


I hope this was useful to you, and let’s see what’s next?

Greetings,

Thomas

#gitcommand #github #cheatsheet

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑