I am trying to push to a remote branch that has a different name than the local branch. The problem is that every time I click on the "Push" button in the interface I need to specify the remote branch again.
If I used the same name for the remote branch and the local branch this does not happen.
This is happening with Sourcetree 4.2.8 on Mac
Community moderators have prevented the ability to post new answers.
Hi @Ferdinando Papale and welcome,
when your local branch name and remote branch name are the same, Git automatically sets an upstream branch the first time you push. After that, a plain Push works.
When the names are different, Git does not automatically remember the mapping unless you explicitly tell it:
feature/my-workorigin/FEATURE-123Without an upstream configured, Git has no idea by default where “Push” should go — so Sourcetree keeps asking you every time.
This is Git-level behavior, not a Sourcetree bug.
Hope this clarifies,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.