Bence Ács Bence Ács - 1 year ago 63
Git Question

How can I shorten `git checkout` to `git co`?

I want to shorten

git checkout master
git co master

Answer Source

The command:

git config --global checkout

will create a git alias to do that. It will add the following entry into your global ~/.gitconfig file:

    co = checkout