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

2 votes
Andrew Swan 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted Jan 17, 2019 in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,406 views 13 14
Join discussion

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