Sublime Forum

Pull a branch without checking it out

#1

Could we get an option to pull the latest commits into a branch without having to checkit out first? Git Kraken and SmartGit (https://www.syntevo.com/doc/display/SG181/Merge) offer this option, and it’s super handy.

2 Likes

#2

You can create a custom menu for branches, like that

File (wndows): C:\Users\YOURUSER\AppData\Roaming\Sublime Merge\Packages\User\Branch.sublime-menu

[
    {
        "caption": "Fetch $branch",
        "command": "git",
        "args": {"argv": ["fetch", "origin", "$branch:$branch"]}
    }
]

This will create a new menu:

2 Likes

#3

For a non-fetch approach see:

1 Like