How to change the current branch to master in Egit?

Declan McKenna picture Declan McKenna · Feb 14, 2012 · Viewed 11.4k times · Source

I want to know how to do this in Egit the eclipse plugin. 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. 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)

enter image description here

Answer

VonC picture VonC · Feb 14, 2012

It should be possible by:

The OP Deco reports the appropriate process he followed:

  • Created a temp branch alongside the master branch
  • Right clicked and selected Team >'switch to' > 'master'
  • Chose hard reset and select the test branch.