# Set a new HEAD to a branch # Note that commit can be a commit hash or tag or another branch git reset --hard $COMMIT