Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git reset hard for remote

 git reset --hard <commit-hash>
 git push -f origin master # only works for unprotected branches that allow force push
 
PREVIOUS NEXT
Tagged: #git #reset #hard #remote
ADD COMMENT
Topic
Name
8+9 =