default aliases (ci, di, st, co)
From: Ondrej Certik <hidden>
Date: 2016-06-15 22:47:02
Hi,
coming to git from mercurial and svn, here is the alias part of my .gitconfig:
[alias]
ci = commit
di = diff --color-words
st = status
co = checkout
And all is fine until I share commands to checkout my branch (for
example) with other people, then basically I have to write those
commands in full (e.g. commit, checkout, ...), since I cannot assume
they have their .gitconfig setup the same way I do. Especially for
people who are new to git.
What is the view on this in the git community? Do most of you write
git checkout -b branch ...
(possibly with TAB completion) or do most of you write
git co -b branch ...
(like I do all the time, except when sharing my commands with other people)?
Could in principle those aliases be even made default by git? Or is
this not a good idea.
Ondrej