Git and Mercurial
I use Git and Mercurial. Take a note on some of my configurations.
Git is configured via git(1) command. Configurations eventually go into .gitconfig, which can be edited by hand.
# note "--global" means per user # system wide setting is set with "--system" # if cd into project dir and without "--global", settings will be in project scope $ git config --global user.name 'Wei Liu' $ git config --global user.email liuw@liuw.name # if use windows, better set $ git config --global core.autocrlf true $ git config --global core.safecrlf true
Mercurial is configured via ~/.hgrc or project specified .hgrc.
[ui] username = Wei Liu <liuw@liuw.name>
As far as I can see, Git is more powerful while Mercurial is easier to use. There’s still more to learn about DVCS. Some interesting stuffs:
http://www.python.org/dev/peps/pep-0374/
This article provides several usage scenarios on several VCS, quite useful to green hand like me.
http://code.google.com/p/support/wiki/DVCSAnalysis
Google’s analysis of Git and Mercurial. But I got the sense that the reviewer’s biased towards Mercurial. Anyway, Google is a Python company.
© 2010, liuw. All rights reserved.