how to use SourceTree to rebase github branches

I'm working on a project with several other people and we are hosting the whole thing on github.

We have created a branch to work on some new feature and several of us contributed to that branch. Along the way, before pushing our change back to origin/feature on github, we would pull and rebase, then push our changes.

The problem i have now, is that I would like to keep that branch (origin/feature) up to date compared to the origin/master branch on github.

I tried interactive rebase in source tree by:

- checking out master, pulling the latest version from origin

- checking out the feature branch, pulling the latest version from origin

- right clicking on the local/master branch and selecting rebase rebase current change onto master

- fixing any merge conflicts and completing the rebase

=>when i try to push, it tells me i can't because my branch is behind and if i pull, the pull essentially undo all the rebase i just did and simply adds more changes on my feature branch.

The only idea that i have, is that i'm trying to rebase locally and it seem like i need to rebase on the server directly to get this working, but i can't find out how to do that either.

Any help appreciated, olivier

1 answer

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

241 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot