Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Undo the commit and completely remove all changes

git reset --hard HEAD~;
# Warning: hard resets the index and working tree. 
# Any changes to tracked files in the working tree since the previous commit are discarded
Source by bytefreaks.net #
 
PREVIOUS NEXT
Tagged: #Undo #commit #completely #remove
ADD COMMENT
Topic
Name
8+6 =