In Git-flow, you first create a master(stable) branch & develop branch and branch out feature branches from the develop branch to create feature/foobar_feature
.
However, sometimes I later find that my feature branch already created became something very far from its original feature name.
Case 1: I created a project with my team and named a feature branch according to the name we came up with but later decided that there is a better name for that. For example in game development context,
feature/item_foo_sword
tofeature/item_bar_sword
.Case 2: I created a feature branch expecting to accomplish some feature but on the way, turned out to be something basically different from what the name describes. For example in the context of developing a web video scraper,
feature/header_scraper
tofeature/video_url_and_everything_scraper
.
I know it's the best to just create a new feature if what I'm doing isn't what I named it but sometimes I just end up getting sidetracked and finish it on the wrong branch.
What is the best convention to modify my feature branch's name and make it less confusing abiding by Git-flow and other standardized rules? (if there's any)