LoginSignup
0
0

More than 1 year has passed since last update.

terminalでローカルブランチを作成する

Posted at

1.terminalを開く

スクリーンショット 2022-04-25 8 49 16

2.ローカルブランチとしてkituneを作成する

git branch kitune

このやり方だとただ作成されるだけ

git branch -a

で見ればわかるがmainブランチから移動していない

スクリーンショット 2022-04-25 8 53 54

3. ローカルブランチとしてookamiを作成する

git checkout -b ookami

こっちの方法だと作成したブランチに移動するところまで含まれる

git branch -a

で確認すると作業ブランチがookamiに移動していることがわかる

スクリーンショット 2022-04-25 8 56 29
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0