git reset my branch code example Example: revert to master origin branch git Click to copygit checkout mybranch git reset --hard origin/mybranch