I like .gitconfig



If you use git from the command line you can improve your usage experience by altering your git config file which is called .gitconfig. Find that file in your home folder.

You can for example turn on color and add some handy shortcuts. Here is what I use:

[color]
    branch = auto
    diff = auto
    interactive = auto
    status = auto
[alias]
    st = status
    ci = commit
    aa = add -A
    b = branch
    co = checkout

It is also possible to alter the .gitconfig from the commandline. The settings above would then look like this:

git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto

git config --global alias.st status
git config --global alias.ci commit
git config --global alias.aa 'add -A'
git config --global alias.b branch
git config --global alias.co checkout