Reset and sync local repository with remote branch git fetch origin git reset --hard origin/master git clean -f -d Your local branch is now an exact copy (commits and all) of the remote branch.