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 09:00 Go to next message
na na is currently offline na na
Messages: 8
Registered: November 2013
Junior Member
Hi,

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 15:11 Go to previous messageGo to next message
R Shapiro is currently offline R Shapiro
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 08:25 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 556
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: Thu Aug 28 05:26:38 EDT 2014

Powered by FUDForum. Page generated in 0.02197 seconds