您的位置:首页 > 其它

hg的常用配置

2014-03-18 08:04 46 查看
hg的配置文件分为全局配置和每个Repo自己的配置,Ubuntu系统下全局配置文件是~/.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 = *
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: