how to use SourceTree to rebase github branches

olivier d
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 26, 2013

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

0 votes
Patrick Do
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2014

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events