haiju's 開発メモ

開発に必要な情報を自分用にメモ

リモートから特定のブランチを指定してcloneするには

リモートのdevelopブランチを直接一発でcloneしたい時

って、どうやるのかな?

と思ったので調べて自分用に備忘録をメモφ(ΦωΦ)

[手順]

1. リモートのdevelopブランチを指定してcloneする。

% git clone -b develop https(ssh)://repository_address

※基本形

% git clone -b branch_name https(ssh)://repository_address

2. developブランチの内容が取得できているか確認できればok。

[参考サイト]

qiita.com