[git]ブランチ生成と注意点
前提
developからブランチを切りたい。
方法①
ブランチの作成をする前に自身がdevelopブランチにある状態
$ git branch ブランチ名
方法②
他人のブランチにある状態
$ git checkout -b ブランチ名 origin/develop
$ git branchは気をつける
$ git log
develop
* branch1
$ git branch branch2
前提
developからブランチを切りたい。
方法①
ブランチの作成をする前に自身がdevelopブランチにある状態
$ git branch ブランチ名
方法②
他人のブランチにある状態
$ git checkout -b ブランチ名 origin/develop
$ git branchは気をつける
$ git log
develop
* branch1
$ git branch branch2