Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git revert to last commit

git reset --hard branch_name #Reverts all modified files to last commit on branch
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #revert #commit
ADD COMMENT
Topic
Name
2+3 =