Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » EGit removing stale branches?
EGit removing stale branches? [message #1170243] Mon, 04 November 2013 14:00 Go to next message
na na is currently offline na naFriend
Messages: 8
Registered: November 2013
Junior Member

I'm new to Git and just playing around with the tools trying this and that. I set up
a remote repo (R), cloned it twice to different locations (A,B), created a local
branch with A, pushed it to R, pulled it into B. Than I deleted the remote branch
via a push spec from A and R. So far so good. But than I realized that the changes
did not travel into B. I wasn't able to find an option to prune stale branches.

So, how can I remove stale remote branches with EGit? Using the (msys) CLI I can issue various commands like git fetch --prune or git remote prune origin.
Re: EGit removing stale branches? [message #1170666 is a reply to message #1170243] Mon, 04 November 2013 20:11 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
I don't think prune is supported directly yet in EGit.
But supposedly JGit supports the gc.pruneExpire config parameter, and EGit definitely supports git gc (look in the right-click menu of entries in the Git Repositories view for that). So in theory you could do it that way. I've never tried it though.

Probably easier to to use the command-line, or a simple external launcher with the root of the currently selected clone as the working directory. Ordinarily You can get at the clone root with the variable ${git_work_tree}
Re: EGit removing stale branches? [message #1176659 is a reply to message #1170666] Fri, 08 November 2013 13:25 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
This isn't yet implemented in EGit. GC does not delete any refs but only purges unreachable objects.
Previous Topic:Client is downloading files very slowly for big repos.
Next Topic:Forgot adding files to commit
Goto Forum:

Current Time: Fri Dec 19 16:01:09 GMT 2014

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

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