Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
とにかく、リポジトリではなくブランチのコンテンツをダウンロードする必要がありますか。サーバー上でビルドするにはブランチが必要なので、リポジトリのものではなく、自分のファイルだけに興味があります。
--single-branchgit clone には修飾子を使用する必要があります。というブランチがあるとします。my_branch
--single-branch
my_branch
$ git clone --single-branch --branch my_branch
これにより、ブランチのすべての履歴がダウンロードされます。修飾子を使用--depthすると、最新のリビジョンのみを取得できます。
--depth
$ git clone --depth 1 --single-branch --branch my_branch