Git Log: Checkout Selected Commit
git.log.checkout Check out the commit selected in the Git Log tool window (detached HEAD).
How to run it
Open the command palette (M-x in the Emacs keymap) and search for Git Log: Checkout Selected Commit, then press Enter. It has no default keybinding, but you can bind one in Settings → Keymaps.