0
0

More than 1 year has passed since last update.

git cloneをする時に任意のブランチを指定する方法

Posted at

git cloneをするときにブランチをしていする方法

git cloneをするときに、開発中のソースを落とすことができず、
事象を確認したところ、開発時は「develop」ブランチで作業を行っていたが、
git cloneで落としたソースは「master」ブランチであったことが判明。

事象が分かったところでgit clone時にブランチを指定する方法を調べた。

下記のコマンドでブランチを指定してcloneすることができる

git clone -b [ブランチ名] [リポジトリのアドレス]
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