DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

hg的常用配置


hg的配置文件分为全局配置和每个Repo自己的配置, Linux下全局配置文件是~/.hgrc,Win7系统下是C:\Users\chad\mercurial.ini, 各repo的配置文件是$REPO_PATH/.hg/hgrc。

常用配置

设置Repo的用户名

[ui] 
username = Your Name

push/pull目标仓库

[paths] 
default = http://ip_or_hostname:8000/ 
repo1 = = https://user@bitbucket.org/user/nep

之后可以用hg push推送到default库,用hg push repo1推送到repo1库;

push目标禁用ssl验证

[web] 
push_ssl = false 
allow_push = *


Published

Apr 26, 2013

Last Updated

Apr 26, 2013

Category

Tech

Tags

  • config 7
  • Hg 11

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor