Lastime I talked about the command for checking out source code with CVS and Subversion. Now I'd like write about the command of Mercurial and Git.
Mercurial is a source code management system currently used by many famous open source projects like
NetBeans and
Firefox web browser. To check out source codes from respository, follow this:
hg clone <repo url> <destination>
e.g.:
hg clone http://hg.mozilla.org/mozilla-central/ src
While concept like check out and check in is famous for CVS, Subversion and SourceSafe, Mercurial and Git use different terms for similar concept, which are pull and push. Pull is retrieving bits from repository and push is putting back updates to the repository.
To pull latest copy from server:
hg pull -u
Git, not as famous, but the software codes that managed by it can be considered as one of the leaders of open source, which is, Linux kernel (Ruby on Rails also one of them). This thing is first created by Linus Torvalds written purely in C, and it stands for Fast Version Control System.
To check out code using git, do this:
git clone <repo url>
e.g.:
git clone git://git.videolan.org/vlc.git (getting VLC Player source code)
And to get latest copy:
git pull --rebase