Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Rollink back the upstream master
Rollink back the upstream master [message #1226970] Fri, 03 January 2014 07:31 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

We inadvertently pushed a bad commit to our upstream master.

To clean up, I hoped that the normal downstream approach would work,
rename the bad branch, clearing the way for the good branch to take over.

Unfortunately there appears to be a privilieged status for the upstream
master branch. So we have an undeletable wrongMaster branch that is the
default branch for http://git.eclipse.org/c/ocl/org.eclipse.ocl.git and
a deletable master branch that represents our best endeavours.

Is there a way to transfer the privileged status from wrongMaster to master?

Regards

Ed Willink
Re: Rollink back the upstream master [message #1227165 is a reply to message #1226970] Fri, 03 January 2014 18:40 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
One commit is bad? How bad is this bad commit? If it's just an error in one commit you can simply revert the commit and then push that reversion. No need for any new branches or anything else. If other related commits have happened since, you can revert them one at a time, in reverse order.

If the problem is that something got pushed that should never have been exposed, for instance for a security reasons, then you really need to get that commit out the history altogether, not just revert it or create a new branch. That topic isn't appropriate for an EGit forum. Do a web search for re-writing history in Git to find out more.

Regarding the 'privileged status' most likely that's just the value of the symbolic reference HEAD in the server repository. The reset command can be used to point HEAD somewhere else.
Re: Rollink back the upstream master [message #1228313 is a reply to message #1227165] Mon, 06 January 2014 23:33 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
if you really need to remove a commit from your git's history file a bug for webmaster, AFAIK he knows how to fix that.
Previous Topic:Is eGit compliant with Eclipse 3.6 ?
Next Topic:Egit hangs clone from repository with ssh
Goto Forum:
  


Current Time: Thu Apr 25 16:29:56 GMT 2024

Powered by FUDForum. Page generated in 0.03203 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top