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

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

2 answers

1 accepted

3 votes
Answer accepted

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.

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

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
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,236 views 4 2
Read article

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