git hard reset to origin master code example
Example 1: git reset to origin/master
git reset --hard origin/master
Example 2: revert to master origin branch git
git checkout mybranch
git reset --hard origin/mybranch
Example 3: git reset branch
git fetch origin
git reset --hard origin/branch_name
Example 4: git reset hard to remote
git reset --hard origin/master; git commit -m 'reset to remote';git push --force local dev