DEV Community

Discussion on: 30+ Git Commands That I Frequently Use

Collapse
 
vishnuharidas profile image
Vishnu Haridas • Edited

Undo the last commit:

git reset HEAD~
Enter fullscreen mode Exit fullscreen mode

This is one of the most upvoted question in StackOverflow.

I... use... this... a lot!