version control - How do you edit a branch in Git? -
coming svn world, wrapping head around git has been little weird, , i'm having trouble letting go of of practices ingrained in me using subversion long. so, example, in svn branching structure might this:
-trunk
--master
-branches
--somefeaturebrancha
--somefeaturebranchb
so, in situation master branch has it's own set of code, , once check out somefeaturebrancha & somefeaturebranchb, they'll have own code. however, when create branch in git, see branch listed, @ point i'm unsure of how edit code branch.
do clone branch down & rename like:
-trunk
--master
--somefeaturebrancha
or there command i'm missing handles me?
thanks taking time me out!
git branch tell branch you're on (as git status). edit do, if you're on right branch. if you're on wrong branch git checkout some branch there. top of git repository equivalent of subversion /trunk or /branches/somefeaturebrancha.
Comments
Post a Comment