replace my branch with what's in the remot repo code example Example: oevrride localwith remote branch git reset --hard origin/master