Answers for "get hard reset git commit remote"

2

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
1

git reset hard to remote

git reset --hard origin/master; git commit -m 'reset to remote';git push --force local dev
Posted by: Guest on August-12-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language