[英]How to change the current branch to master in Egit?
I want to know how to do this in Egit the eclipse plugin. 我想知道如何在Egit eclipse插件中执行此操作。 This question has been asked many times for git but the answers involve some form of command language I do not have access to or know.
这个问题已经被问了很多遍git了,但是答案涉及某种我无法访问或不知道的命令语言。 Using the eclipse interface how can I make the test branch the master branch without taking on the original master branches flawed code (ie no merging)
使用eclipse接口,如何在不使用原始主分支有缺陷代码(即不合并)的情况下使测试分支成为主分支
It should be possible by: 应该可以通过以下方式实现:
master
(in order to not lose the HEAD of that branch) master
节点上创建一个新分支 (以免丢失该分支的HEAD) master
branch to the test
branch (the commits won't be lost, since they are referenced by the new local branch you just created) master
分支重置为test
分支 (提交不会丢失,因为您刚刚创建的新本地分支引用了这些提交) The OP Deco reports the appropriate process he followed: OP Deco报告了他遵循的适当流程:
temp
branch alongside the master
branch master
分支旁边创建一个temp
分支 Team >'switch to' > 'master'
Team >'switch to' > 'master'
hard reset
and select the test
branch. hard reset
并选择test
分支。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.