git reset a branch code example
Example 1: revert to master origin branch git
git checkout mybranch
git reset --hard origin/mybranch
Example 2: git reset branch
git fetch origin
git reset --hard origin/branch_name
git checkout mybranch
git reset --hard origin/mybranch
git fetch origin
git reset --hard origin/branch_name