GIT Practical Reference

Git Aliases

Git aliases allow you to create shortcuts for frequently used Git commands.

To create a Git alias, open your terminal and edit your global Git configuration file:

git config --global --edit

Now, add your aliases in the [alias] section. For example, to create an alias for 'git status' as 'gs', add the following:

[alias]
    gs = status

Now, you can use 'git gs' instead of 'git status'.