Davide Targa website

Programming, web development and open source

Helpful Git Aliases

If you use Git to Version Control your source code, you may find helpful to define some aliases for the most common tasks such commit, diff, … To define aliases inside git, you have to use the following commands. Here I give only a few examples:

1
2
3
4
$ git config --global alias.ci commit
$ git config --global alias.d diff
$ git config --global alias.l log
$ git config --global alias.s status

Comments