Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to revert to a specific commit in origin

#SM

git checkout master
git reset --hard e3f1e37
git push --force origin master
# Then to prove it (it won't print any diff)
git diff master..origin/master
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #revert #specific #commit #origin
ADD COMMENT
Topic
Name
7+8 =