User Tools

Site Tools


work:hg-howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
work:hg-howto [2010/12/24 17:49] – created percywork:hg-howto [2016/05/05 13:07] (current) – external edit 127.0.0.1
Line 10: Line 10:
 hg clone https://bitbucket.org/pjq/XXXX hg clone https://bitbucket.org/pjq/XXXX
 hg pull -u # to pull changes and update hg pull -u # to pull changes and update
 +hg update
 </code> </code>
 +
 +hg每次都要输入用户名密码,在工程目录下有.hg/hgrc,配置一下default,加上username:password
 +  [paths]
 +  default = https://username:password@bitbucket.org/pjq/XXXX
 +这样之后再push/pull的时候就不需要输入用户名密码了。
 +
 +
 +===== Issues 1=====
 +  Not trusting file .hg/hgrc from untrusted user root, group root
 +遇到这个问题需要修改~/.hgrc:
 +<code>
 +pjq@gentoo ~ $ cat ~/.hgrc
 +[trusted]
 +users = *
 +group = *
 +
 +[ui]
 +username = pengjianqing@gmail.com
 +
 +</code>
 +
  
/var/www/dokuwiki/wiki/data/attic/work/hg-howto.1293184165.txt.gz · Last modified: 2016/05/05 13:06 (external edit)