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