Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can you rename git branches in SourceTree?

I am working on a side-by-side comparison screencast using SourceTree, SmartGit and Gitbox. This has an unhappy knack of showing up missing functionality. In this case, I got stuck showing how you would rename a git branch from inside SourceTree. It's a right click on the branch name in SmartGit, for example.

So, my question is, is there a straightforward way to rename a branch from the SourceTree GUI? This would be equivalent to "git branch -m".

4 answers

3 votes
Andrew S Atlassian Team Apr 03, 2017

I know this is an old question, but just for the record, it's now a SourceTree feature (in OSX at least):

Screen Shot 2017-04-04 at 11.13.16 am.png

Right now you have to delete & re-create the branch - in-place renaming is on the list:

Also you will need to delete the remote branch and push the newly renamed local branch to remote

Thanks for these helpful answers, much appreciated.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

4,417 views 4 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you