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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

790 views 0 4
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