default aliases (ci, di, st, co)
- From
Ondrej Certik <ondrej@certik.cz>
- Date
- Jul 8, 2009, 23:49 UTC
- Message-ID
- <85b5c3130907081649s37f726f7id1a64f2fdbe609f@mail.gmail.com>
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 = checkoutAnd 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