How can I reset the prefixes (/feature, /hotfix, ... ) of git flow

thomas bader
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!
November 29, 2012

I have set some prefixes when I first pressed the gitflow button. I would now like to change these prefixes.

2 answers

1 accepted

4 votes
Answer accepted
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.
November 29, 2012

There are a few caveats around changing the setup after you've started using git-flow, which is why there's no option to change it in ST right now.

If it's just the prefixes (not master or develop) you want to change, it's a little less tricky, unless you already have feature / release / hotfix branches. You should not change the prefixes if you have any of these already.

If you don't, then you can edit the prefixes in the .git/config file inside your repo. Look for the section marked [gitflow "prefix"], and modify the values on the right hand side to change them. Make sure you keep the '/' on the end.

joostfontein November 13, 2013

What if all the features / release / hotfixes are 'closed' and removed at a certain point. Can they be changed at that moment?

1 vote
jaimeninolesjimeno
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!
September 6, 2015

You can edit in .git/config when you are using gitflow. May be that helps.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events