Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法来为已提交到 mercurial 存储库的用户创建别名。例如,如果有一个名为 user1 的用户,我希望他所做的每个提交都以 user2 为名。
如果您正在谈论更改已用于某些提交的名称,您可以使用hg convert源和目标类型hg以及--authors映射文件来做到这一点。但是,这样做时,您会更改每个变更集的哈希值,如果有人已经克隆了您的存储库,您将使用它们。
hg convert
hg
--authors
如果您正在谈论即将提交的提交,那么只需-u使用hg commit.
-u
hg commit