Switch to different commit to git commands.