...

/

Git Alias Configuration

Git Alias Configuration

Learn to create aliases in Git.

We'll cover the following...

What is an alias?

If a command is very long, we can set an alias command for it. We do this by setting the alias in the config file in the .git folder.

There are several places where we can put the config file. Most likely, we’ll want to create this file in our home directory. That applies to all terminals on our machine and projects under our user account.

For example, here’s an alias to show all branches with ...