How can you rename git branches in SourceTree?

sfkleach
Contributor
May 15, 2012

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
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 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

0 votes
sfkleach
Contributor
July 4, 2018

Thanks for these helpful answers, much appreciated.

0 votes
Mike Warnes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 4, 2018

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

0 votes
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2012

Right now you have to delete & re-create the branch - in-place renaming is on the list: https://jira.atlassian.com/browse/SRCTREE-713

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events