You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser.
How do you undo in terminal?
How do you undo in terminal?
Answer
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.