How to I sync two GitHub branches?

I have my master branch and I want to get it in sync with my gh-pages branch. How do I do this in sourcetree?

1 answer

You have a choice between merging and rebasing, this blog post might be useful:

Usually, you'll want to merge if these are different branches and they're both visible on GitHub already. In SourceTree, you can use the Merge toolbar button to merge another branch into your current branch (so if you have master checked out, you could merge gh-pages into it), or you can right-click on a branch in either the sidebar or in the log and select 'Merge' to bring that branches changes into your 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