Sublime Forum

Delete local branch only

#1

Assume there is a branch on remote that I check out locally.

I have observed that if I delete my local branch (via right-click, delete and confirming the pop up) sometimes the branch on remote gets deleted, too via git push origin --delete feature/branch

I don’t understand when this happens. In my case I never want this behavior. I always want git branch -d feature/branch to be invoked.

Can anyone explain when this happens? Can I deactivate it?

My use case: I sometime checkout a branch in order to review it (because I prefer my IDE over the github diff view). When deleting that local branch I of course never want to delete the remote one.

0 Likes

#2

Oh gosh, never mind. There are to different “delete” buttons… One for the “feature/branch” and one for “origin/feature/branch”.

1 Like