git switch:

  

The hashes here are made up for the demo. In real Git they come from the commit's contents.