I like .gitconfig

If you use git from the command line you can improve your usage experience by altering your git config file wich 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:

 branch = auto
 diff = auto
 interactive = auto
 status = auto
 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
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *