Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Remote Tracking - new branches(Fetching Remote Branches)
Remote Tracking - new branches [message #1692372] Wed, 15 April 2015 07:34 Go to next message
Eclipse UserFriend
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 02:06 Go to previous messageGo to next message
Eclipse UserFriend
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 03:41 Go to previous messageGo to next message
Eclipse UserFriend
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 03:43 Go to previous message
Eclipse UserFriend
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: Sat Nov 08 01:46:45 EST 2025

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

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

Back to the top