Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Remote Tracking - new branches(Fetching Remote Branches)
Remote Tracking - new branches [message #1692372] Wed, 15 April 2015 11:34 Go to next message
Yogesh Manware is currently offline Yogesh ManwareFriend
Messages: 2
Registered: April 2015
Junior Member
I am currently working on one of the branches we have.
Now, one more branch got added and I want to switch to that Branch.
However, I could not see newly created branches anywhere in E-Git.
Is there any way to fetch the branches through E-Git and switch to one of it?

I know I can fetch the branches from command prompt using
git remote update but wondering if I can do the same through E-Git.
Re: Remote Tracking - new branches [message #1692467 is a reply to message #1692372] Thu, 16 April 2015 06:06 Go to previous messageGo to next message
Yogesh Manware is currently offline Yogesh ManwareFriend
Messages: 2
Registered: April 2015
Junior Member
Actually when we right click on the repository and 'fetch from upstream' or 'Pull', new branches also gets downloaded.
However, in my case the exception was occurring in the background. I had some local branch pointing to remote branch which got deleted.
This error was interrupting the fetch or pull operation and I was not able to see newly added branches.
I edited .git/config file or relevant repository to deleted the stale locale branch. This resolved my issue.
Re: Remote Tracking - new branches [message #1692643 is a reply to message #1692467] Fri, 17 April 2015 07:41 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
what was the exactly the exception you got ?
which part of the configuration did you delete to get rid of the problem ?
Re: Remote Tracking - new branches [message #1692645 is a reply to message #1692643] Fri, 17 April 2015 07:43 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
JGit's FetchCommand doesn't yet support the prune option provided by "git fetch --prune" [1]

[1] http://git-scm.com/docs/git-fetch
Previous Topic:Luna 4.4.2 + JDK 8 : cannot open git-upload-pack
Next Topic:Jgit diff and triple dot
Goto Forum:
  


Current Time: Fri Apr 19 20:36:37 GMT 2024

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

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

Back to the top