revert to master origin branch git

Shell
git checkout mybranch
git reset --hard origin/mybranch

Source

Also in Shell: