Git Aliases - What Are They And How To Use Them?

catalins.tech
3 min read
fairly easy
Being a developer, we work a lot with Git. We tend to write the same commands countless times in a day. Thus, repeating the same long Git commands over and over can become a tedious task. As a result, in this article, you are going to see how to set ...
Being a developer, we work a lot with Git. We tend to write the same commands countless times in a day. Thus, repeating the same long Git commands over and over can become a tedious task.

As a result, in this article, you are going to see how to set up Git aliases for any Git command you want. The aliases are going to improve your experience significantly, and it is going to save you time as well.

What are Git Aliases

Git Aliases are shorter commands that map to longer commands. In simpler words, they act as a shortcut. For instance, instead of typing git commit -m "message here" every time you want to commit some changes, you can use an alias such as git cm "message" .

At first glance, it might not seem like a significant improvement, but once you repeat the same command a dozen times, you can see the benefit. Also, it saves you a lot of time when you are pushing changes and use various commands.

Therefore, let us see how to set up the Git aliases.

How…
Read full article