If I have a branch checked out, I can pull another branch without checking it out by running
git fetch origin branch:branch
for example, if I’m in a feature branch, but want to pull the latest silver, I can run
git fetch origin silver:silver
This is useful when I want to rebase my branch onto silver without having to checkout silver first.
Sublime Merge won’t let me run that command, I have to switch to a git bash to do that. It would be great if this was supported from within the command palette.
Thanks!
Edit: for reference - https://stackoverflow.com/questions/3216360/merge-update-and-pull-git-branches-without-using-checkouts/17722977#17722977