git replace local branche with master code example Example: git replace local branch with remote git reset --hard origin/master