How to rebase against origin/master?

git rebase -i origin/master

git rebase origin/master


Does this work in SourceTree? How?
If not; Is it planned on being added?


It's quite handy not having to change branch to my local master, update that to latest from origin, then switch back to my feature branch and use rebase on my local master. Being able to rebase, both regular rebase as well as interactively, against the origin master branch would be awesome!

2 answers

I'm also trying to do this. I'd like the ability to perform a "git pull master origin" against my local branch to update my branch accordingly with the click of a button. Currently, I toggle back to the command line and call out the git command "git pull origin master" against my current branch. 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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 ...

649 views 0 4
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