Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Fetch all remotes(How do I "git fetch --all" in Eclipse)
Fetch all remotes [message #1386637] Wed, 18 June 2014 23:03 Go to next message
Brandon White is currently offline Brandon WhiteFriend
Messages: 3
Registered: June 2014
Junior Member
I'm trying to find a way to essentially do a "git fetch --all" from within Eclipse. Surely there is a way to do a fetch from all remotes with a single command, but I just can't seem to find it. I am filling the integration role, so I need to be able to fetch from each team member's repositories. How do I do that with one command without having to do an individual fetch for each remote?

Thanks!
Re: Fetch all remotes [message #1386708 is a reply to message #1386637] Thu, 19 June 2014 16:15 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
On 19/06/2014 15:51, Brandon White wrote:
> I'm trying to find a way to essentially do a "git fetch --all" from
> within Eclipse. Surely there is a way to do a fetch from all remotes
> with a single command, but I just can't seem to find it. I am filling
> the integration role, so I need to be able to fetch from each team
> member's repositories. How do I do that with one command without having
> to do an individual fetch for each remote?
>
> Thanks!

Maybe right-click on the repo in the repositories view and do "Fetch
from Upstream"? Just guessing though.

Felix
Re: Fetch all remotes [message #1386713 is a reply to message #1386708] Thu, 19 June 2014 18:08 Go to previous messageGo to next message
Brandon White is currently offline Brandon WhiteFriend
Messages: 3
Registered: June 2014
Junior Member
Tried that. It just fetches from the repo that your current branch is tracking.
Re: Fetch all remotes [message #1386736 is a reply to message #1386713] Fri, 20 June 2014 00:22 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Do you have an entry like this for all remotes ?

[remote "<remote name>"]
url = <url>
fetch = +refs/heads/*:refs/remotes/<remote name>/*

Why do you fetch directly from the developers and don't use a server to collect the changes
from all developers ?
Re: Fetch all remotes [message #1386801 is a reply to message #1386736] Fri, 20 June 2014 15:02 Go to previous messageGo to next message
Brandon White is currently offline Brandon WhiteFriend
Messages: 3
Registered: June 2014
Junior Member
Matthias Sohn wrote on Thu, 19 June 2014 20:22
Do you have an entry like this for all remotes ?


Yes

Quote:
Why do you fetch directly from the developers and don't use a server to collect the changes
from all developers ?


Each developer pushes to their fork of the project on github, then I'm trying to fetch from each of their github repos. Typical forking workflow, see www.atlassian.com/git/workflows#!workflow-forking
Re: Fetch all remotes [message #1735451 is a reply to message #1386801] Sun, 19 June 2016 21:59 Go to previous messageGo to next message
Marcel Verpaalen is currently offline Marcel VerpaalenFriend
Messages: 59
Registered: September 2014
Member
This is a very old discussion, but I'm looking for the same.
Feels like very logical flow that you want to fetch all defined remotes


Is there a way?
Re: Fetch all remotes [message #1738199 is a reply to message #1735451] Mon, 18 July 2016 05:55 Go to previous messageGo to next message
Ulrich Wielant is currently offline Ulrich WielantFriend
Messages: 14
Registered: January 2015
Junior Member
There is a workaround to fetch from multiple projects: Select all projects and start "synchronize workspace".
But I don't know if that also works for multiple remotes.
Re: Fetch all remotes [message #1739386 is a reply to message #1738199] Sun, 31 July 2016 11:23 Go to previous message
Marcel Verpaalen is currently offline Marcel VerpaalenFriend
Messages: 59
Registered: September 2014
Member
Thanks, indeed that seems to do the trick partly.
Previous Topic:URI not supported cloning repository
Next Topic:Integrating Java Swing with GIT GUI
Goto Forum:
  


Current Time: Fri Mar 29 06:13:23 GMT 2024

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

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

Back to the top