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

How to rename a branch ?

Hervé Marchal January 31, 2020

How to rename a branch I created ? Not familiar with it but I did not see in the contextual menu a quick way to do that. 

Thanks

1 answer

1 vote
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2020

You can easily change a branch name locally using the command line:

git branch -m <branch>

Rename the current branch to <branch>.

Further reading: https://www.atlassian.com/git/tutorials/using-branches

Rick Fleischer August 6, 2020

If you want to rename the remote branch, without losing any metadata, you won't get what you want.

Like Chen Tsif likes this
Arif Z June 29, 2021

@Rick Fleischerwhat metadata would I lose? Kinda a noob question..

Like Vic Yuschuk likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events