Git reset?
git reset --soft/--mixed/--hard <commit> - moves HEAD
and optionally changes the staging area/working directory to a specified commit.
git reset --soft/--mixed/--hard <commit> - moves HEAD
and optionally changes the staging area/working directory to a specified commit.