LoginSignup
1
1

More than 3 years have passed since last update.

gitブランチ作成コマンド

Last updated at Posted at 2020-05-12

準備

$ git clone (リポジトリのURL)
$ cd (リポジトリ名)
$ git branch
* master

新しくブランチを作成

$ git checkout -b (作成したいブランチ)
$ git push -u origin (作成したいブランチ)

既存のリモートブランチをベースに作成する場合

$ git checkout -b (作成したいブランチ) origin/(作成したいブランチ)
$ git push -u origin (作成したいブランチ)

参考

git branch コマンド
gitでリモートブランチをローカルにcheckoutする
git コマンド branchの作り方

1
1
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
1
1