I am working with a remote team and I am being asked to do following:
<blockquote>
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
</blockquote>
I need to work on featureA so I will be doing:
In future I need to create more features so I may do:
Is it common/right way to name branches this way or should I do below:
then:
Referenced articles before posting:
<a href="https://stackoverflow.com/questions/4470523/create-a-branch-in-git-from-another-branch">SO Question</a>
<a href="http://mamchenkov.net/wordpress/2014/07/10/git-branch-names-support-forward-slashes/" rel="nofollow noreferrer">Git branch names supports forward slashes</a>
<a href="https://gist.github.com/revett/88ee5abf5a9a097b4c88" rel="nofollow noreferrer">Github discussion</a>
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!
<blockquote>
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
</blockquote>
I need to work on featureA so I will be doing:
Code:
git checkout -b myname/featureA
Code:
git checkout -b myname/featureB
Code:
git checkout -b myname
Code:
git checkout -b featureA myname
git checkout -b featureb myname
<a href="https://stackoverflow.com/questions/4470523/create-a-branch-in-git-from-another-branch">SO Question</a>
<a href="http://mamchenkov.net/wordpress/2014/07/10/git-branch-names-support-forward-slashes/" rel="nofollow noreferrer">Git branch names supports forward slashes</a>
<a href="https://gist.github.com/revett/88ee5abf5a9a097b4c88" rel="nofollow noreferrer">Github discussion</a>
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!