简体   繁体   English

如何在Egit中将当前分支更改为master?

[英]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: 应该可以通过以下方式实现:

The OP Deco reports the appropriate process he followed: OP Deco报告了他遵循的适当流程:

  • Created a temp branch alongside the master branch master分支旁边创建一个temp分支
  • Right clicked and selected Team >'switch to' > 'master' 右键单击并选择“ Team >'switch to' > 'master'
  • Chose hard reset and select the test branch. 选择hard reset并选择test分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM