Bence Ács Bence Ács - 1 year ago 74
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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download