git config --global alias.co checkout

Category: Git - Core

git config --global alias.co checkout

Create a shortcut for a Git command

Defines co as an alias for checkout, so git co works like git checkout. Aliases live in ~/.gitconfig under the alias section and accept arguments and flags. For complex commands, quote the whole string.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.