Bence Ács Bence Ács - 28 days ago 11
Git Question

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

I want to shorten

git checkout master
to
git co master
.

Answer

The command:

git config --global alias.co checkout

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

[alias]
    co = checkout
Comments