Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

Thanks for these helpful answers, much appreciated.

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

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

Suggest an answer

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

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,718 views 127 27
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