How do I fetch a tracked remote branch that is not checked out from the GUI.

Basically, how do I issue this command from the GUI:

git fetch <remote> <rbranch>:<lbranch>

I would like to be able to right click on a local branch that is tracking a remote branch and click "fetch".

Am I missing something obvious?

6 answers

What do you want to happen when you click fetch?

In other words, what are you expecting to change in the UI following a fetch command?

When I click fetch on a menu that pops up when I right click on a local branch, I'd like the GUI to issue the command I included in the first post. The application has all the information needed when the local branch is tracking a remote.


When I click fetch on a menu that pops up when I right click on a local branch, I'd like the GUI to issue the command I included in the first post. The application has all the information needed when the local branch is tracking a remote.

Sorry, I missed the last part of your question. I have a local repo with two local branches that are tracking to remote branches. When the branch that I do not have checked out shows an available commit on the remote branch, I'd like to be able to right click on the local branch and fetch the changes:

I should also note that I am using the Windows version.

For me, if I hit the fetch button at the top, it updates information from remotes for all of my branches. Are you specifically wanting to exclude some branches from the fetch?

For these changes I don't really need to exclude some branches. I could see needing that in the future.

Also, the fetch button on the top doesn't work for me. The command completes. The full output says "Completed successfully" but afterwards it still shows that I am 1 commit behind, both in the indicator next to the local branch name and the history graph display.

I ended up launching the git terminal and typing in the command and the fetch works fine. That's what led me to the question "can I specifically fetch one branches changes from the GUI".

Ahh. That's not a fetch, that's a pull. And you do need to check out the branch to pull in remote changes.

To be more detailed here, the SourceTree behind/ahead status is comparing local branches to remote branches. The fetch will make a local copy of the remote branch, but does not modify the local branch.

So then, there is no GUI equivalent to:

git fetch origin FLASHID_Branch:FLASHID_Branch

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

844 views 3 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you