Sublime Forum

Remote branch to pull like in SourceTree

#1

In SourceTree there is a functionality called “remote branch to pull” when pulling (screenshot). How to achieve the same behavior in SublimeMerge?

0 Likes

#2

There is no default way to do this currently. What use-case do you have where this would be beneficial?

0 Likes

#3

@bschaaf, I think what SourceTree does here is this:

# on the current branch
git checkout master

# pull into this branch the remote branch of...
git pull origin another-branch

which as far as I’ve been able to determine [, git effectively] does this:

# on the current branch
git checkout master

git fetch
git merge origin/another-branch

Now, I don’t run non-self pull commands myself, so I’m not 100% sure if this is accurate or not.

1 Like

#4

Indeed. You can achieve the same thing by just using fetch and then merging.

1 Like