git checkout feature-xyz

Category: Git - Core

git checkout feature-xyz

Switch to an existing branch

Switches to an existing branch (the older git syntax). HEAD moves to that branch.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.