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.
我有分支名称default,这是我的生产分支。现在我想从那里创建开发分支并单独工作。
default
我怎样才能在不影响我的默认分支的情况下做到这一点
提交或搁置所有当前更改,然后:
hg branch Name_Of_Branch
这会将您的工作代码切换到一个名为 *Name_Of_Branch* 的分支 -注意,在您执行 a 之前,此分支不会存在于本地存储库中,hg commit并且在您完成 a 之前,其他任何人都不存在hg push,(或接受管理员的拉取请求) ),他们已经做到了hg pull。
hg commit
hg push
hg pull