Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Only push current branch in SourceTree

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

like image 786
Philip Pittle Avatar asked Jun 24 '15 21:06

Philip Pittle


People also ask

How do I push a branch in Sourcetree?

From Sourcetree's History, you'll see that the file has been updated on your new branch. Click the Push button to push your new branch to the repository. Under the Push? column from the dialog box that appears, select your new branch to indicate that you are pushing that branch to origin and click OK.

How do I show only one branch in Sourcetree?

on Sourcetree for macOS you can use the popup button on the left side above the commit graph table to select "Current branch" to show the commits only for your current branch.


1 Answers

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

like image 63
Adam Prescott Avatar answered Sep 24 '22 01:09

Adam Prescott