当前位置: 动力学知识库 > 问答 > 编程问答 >

Setting-up multiple mercurial users under the same user account

问题描述:

I have the following scenario. I am using mercurial on the projects that I am working for at my company, thus I created my .hgrc file with the following settings:

#first username: work repo

username = pablo <[email protected]>

I would like to, in addition to that, be able to commit to my private repository, with my private repository from the same computer/account. Would it be possible to have another username? For example:

#second username, used for private repo

username = pablo <[email protected]>

If so, how would I commit choose which account is committing to a repository?

网友答案:

Each Mercurial working directory has a .hg/hgrc file, and those settings take precedence over the settings in your $HOME/.hgrc file or the /etc/hgrc file.

分享给朋友:
您可能感兴趣的文章:
随机阅读: