I am working with a remote team and I am being asked to do following:
For creating any branch for bug fix cerate it as 'hotfix/BUGFIX_NAME'
For any feature branch create it as 'feature/FEATURE_BRANCH_NAME'
create individual branches by your names separately work on your named branch and create any branch of your task under it. once you merge any task in your named branch, you can merge it in the current feature branch or hotfix branch
I need to work on featureA so I will be doing:
git checkout -b myname/featureA
In future I need to create more features so I may do:
git checkout -b myname/featureB
Is it common/right way to name branches this way or should I do below:
git checkout -b myname
then:
git checkout -b featureA myname
git checkout -b featureb myname
Referenced articles before posting:
Git branch names supports forward slashes
So my question is that am I doing what is right way as per instructions and what should be done?
I apologize if my question is too much subjective and could not be useful for anyone else. Need help before I mess up! :)
Thanks!