User Tools

Site Tools


work:hg-howto

This is an old revision of the document!


hg基本用法

hg是一个和git类似的东东,注册了一个bitbucket.org帐号用来托管私有代码,这个相比github.com是它支持创建private的工程,管理工具是hg,也支持ssh push/pull/clone代码。

用了一下挺简单的,由于只有我一个用用,不会太复杂,基本用法如下,和git基本上是一一对应的:

hg init
hg add .
hg commit -m "comments"
hg push https://bitbucket.org/pjq/XXXX
hg clone https://bitbucket.org/pjq/XXXX
hg pull -u # to pull changes and update

/var/www/dokuwiki/wiki/data/attic/work/hg-howto.1293184165.txt.gz · Last modified: 2016/05/05 13:06 (external edit)