Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to undo local commit git

If your commits are only LOCAL, 
you can git reset --hard origin/<branch_name> 
to move back to where the origin is.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #undo #local #commit #git
ADD COMMENT
Topic
Name
5+4 =