よく使うgitコマンド
ブランチを確認する
git branch
「AAA」というブランチを作成する
git branch AAA
※作成だけで切り替えはしないため注意
ブランチを確認する(できたか)
git branch
⇒出来ていたらこんな感じになる。
AAA
* master
ブランチを切り替える
git checkout AAA
念のためgit branchするとこうなる。↓
* AAA
master
コミットした後
masterブランチへ移動
git checkout master
git pullでmasterを最新に
git pull origin master
開発用ブランチへ移動
git checkout BBB
mergeコマンドでmaserの内容を取り込む
git merge origin master
⇒「BBB」に最新にしたばっかの「master」ブランチ情報を取り込む