sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Checkout the remote branch and reset the local branch to it

Open KindDragon opened this issue 3 years ago • 3 comments

Problem description

After I fetch new changes from the remote repository I would like to switch to any other branch with a single action and reset the local branch to it. Something like 'git checkout -B master origin/master'

I really like Sublime Merge, but I really miss this feature.

Preferred solution

Please add "Reset local branch to origin/hw_address and checkout it" menu item under "Checkout local branch hw_address".

Alternatives

I can do it in a few steps, but it's not very convenient because after checkout the local branch you have to look for the remote branch again to do hard reset.

Screenshots

image

KindDragon avatar Oct 19 '22 10:10 KindDragon

@KindDragon, I think what you're looking for is the workaround found in the below thread, but maybe with some specific adjustments for your use case: https://forum.sublimetext.com/t/quick-way-to-checkout-remote-branch-after-fetch/41569/2

srbs avatar Oct 23 '22 07:10 srbs

Related to #404

KindDragon avatar Nov 02 '22 15:11 KindDragon

Thanks @srbs, almost what I want. But I need this for Remote Branch.sublime-menu #1636

KindDragon avatar Nov 02 '22 15:11 KindDragon