Git Aliases

Tuesday 16/07/19

I just learned about Git Aliases. What is an Git Aliase you ask?

Phil Haack says:

An alias is simply a way to add a shorthand for a common Git command or set of Git commands. Some are quite simple.

If you want to use co instead of checkout, you can set it like this:

git config --global alias.co checkout

And, now you can use git co [branch_name] to checkout a branch like so:

Last updated

Was this helpful?