DEV Community

Njeri Cooper
Njeri Cooper

Posted on

Git Alias: WTF Is It? How to do it? When TF to Use it?

WTF is a Git Alias?

  • a shorthand command for shortcutting Git functions.

How to Do it?

How to make Git aliases and how to use them

  • Configure your global Git settings by typing > git config --global alias.(your desired shorthand command) (actual command)

Example: git config --global commit

or add a bit of code to your .gitconfig file

ci = commit

Top comments (0)