It is always useful to keep aliases for a few commands you often use, whether to save a couple of seconds or a few key presses. Making an alias is easy — alias myAlias=’command(s)’ but you’ll soon realize that these aliases don’t work the second time you open up Git bash.
To save an alias, you need to access the file that stores the aliases. Usually this file will be located in our git directory and within that directory, navigate to etc/profile.d. Here you’ll find aliases and open it with an editor (you’ll need administrative privilege).
The first few lines will have a pair of preset aliases and just add another line with your alias (with the same format).
There’s a faster way to do this (with command line) but you’ll never know when you need to find them!