LoginSignup
37
37

More than 5 years have passed since last update.

Gitで指定したブランチをcloneする方法

Posted at

Gitで指定したブランチをcloneする方法

master を clone する

git clone git@github.com:ユーザー名/リポジトリ名.git
#まだ
git clone https://github.com/ユーザー名/リポジトリ名.git

特定ブランチ を clone する

git clone -b ブランチ名 git@github.com:ユーザー名/リポジトリ名.git
#まだ
git clone  -b ブランチ名 https://github.com/ユーザー名/リポジトリ名.git
37
37
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
37
37