Mercurial 本地分支并推送到共享存储库
我在本地 Mercurial 存储库上创建了一个分支。我想推送到共享存储库,以便备份我的工作,但我不希望其他项目成员看到该分支。
这种情况下的标准操作程序是什么?
我想避免存储库充满我不需要看到的开发人员分支。
I created a branch on my local Mercurial repository. I want to push to the shared repository so my work can be backed up, but I don't want other project members to see the branch.
What's the standard operating procedure in this case?
I'd like to avoid having the repository get full of developer branches that I don't need to see.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你把两个问题混为一谈了。如果您需要备份分支,只需将本地存储库克隆到实际备份的其他位置,但对您的同事不可见(即不是主存储库)。如果有必要,您始终可以轻松地从多个存储库中提取变更集。
It sounds like you're conflating two issues. If you need your branches backed up, simply clone your local repository someplace else that is actually backed up, but not visible to your coworkers (that is, not the main repository). You can always easily pull changesets from more than one repository in case that becomes necessary.