14

In SourceTree when I push a branch it defaults to pushing every branch. (ie Select All is checked).

Is there a way to disable this behavior and only push the current branch?

Screenshot

1 Answer 1

22

If you want to push the current branch to the tracking remote branch you'd normally pull, go to Tools > Options > Git and change the Push Branches option to upstream.

enter image description here

3
  • Awesome, I never knew what that drop down was for. Do you know what the other options in the list do? Commented Jun 24, 2015 at 21:33
  • 2
    Slightly more detail here: answers.atlassian.com/questions/67569/… Commented Jul 25, 2016 at 13:28
  • Is this still working for people? For me it doesn't change the fact that multiple branches are selected when a click on "Push". Extra dangerous in combination with the "Force Push" checkbox. Commented Apr 18, 2023 at 12:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.