Answers for "git reset hard remote repo"

3

git reset hard for remote

git reset --hard <commit-hash>
 git push -f origin master # only works for unprotected branches that allow force push
Posted by: Guest on September-21-2020
2

git reset remote

# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>

# remote
git push -f origin master
Posted by: Guest on May-15-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language