Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to set default remote branch?

Hello,

I want to push to a remote repo, upstream

my local branch is version1

the default remote branch is ALWAYS version1 when I want to push to master

 

Is there a line in the config to add?

 

Thanks

1 answer

0 votes
minnsey Atlassian Team Feb 22, 2018

If you use the Push option from the toolbar, assuming you are on Windows, you get the option to map local branch to remote branch before pushing.

Thanks for reply but I use Mac but I use the toolbar and here is the initial view and the result I want.  The remote branch always defaults to the same name as the local branch but I want to hard set per repo the default remote branch

 

Screen Shot 2018-02-22 at 12.03.50.pngScreen Shot 2018-02-22 at 12.03.58.png

minnsey Atlassian Team Feb 22, 2018

Can you not change the remote branch using the dropdown?

yes but i don't want to drop down, i just want to click and go. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

4,388 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you