how to cancel a git commit?

I want to delete or remove last commit in Git | Git Questions

Undoing Your Last Commit (That Has Not Been Pushed)In your terminal (Terminal, Git Bash, or Windows Command Prompt), navigate to the folder for your Git repo.Run this command: git reset –soft HEAD~ … Your latest commit will now be undone.

Deleting commits | How, why and why not | GitHub Tutorial

Leave a Comment

Share via
Copy link
Powered by Social Snap