git fetch origin master:master

How can I do the command git fetch origin master:master within SourceTree? I need the complete command and not only a git fetch or git fetch origin or git fetch origin master...

 

Update: I opened a feature request: https://jira.atlassian.com/browse/SRCTREE-3058

7 answers

This widget could not be displayed.

This level of detail is not possible with the SourceTree UI. You can create a feature request for this at http://jira.atlassian.com (post the link in a comment so others can vote for it.)

But the UI has a "fetch" command button. Why can't someone add the branch names there? Where can I request this as a feature?

Edited the answer to contain that info.

This widget could not be displayed.

What's the difference between "git fetch origin master" and "git fetch origin master:master"?

This widget could not be displayed.

Don't know, but only master:master worked for me. I wanted to update the master branch without changing into it.

This widget could not be displayed.

BTW what is wrong with fetching all the other branches as well? It has no harmful effect to your local branches or your workspace. (The only thing it does is update all the origin/* references.)

This widget could not be displayed.

I think the reason for the "git fetch origin master" not working is that there is no tracking relationship between the local master and the origin/master.

This widget could not be displayed.

Hold up, in that feature request you're talking about Pulling branches. Fetch and Pull are very different. Fetch updates the data your repository has about the remote repo, Pull updates your local branches to match the remote.

This widget could not be displayed.

Also, there is no way to pull into any other branch than the current. (But I think you mean fetch, not pull.)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

876 views 2 3
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