In SourceTree there is a functionality called “remote branch to pull” when pulling (screenshot). How to achieve the same behavior in SublimeMerge?
Remote branch to pull like in SourceTree
bschaaf
#2
There is no default way to do this currently. What use-case do you have where this would be beneficial?
0 Likes
srbs
#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