13

ローカル ディスクに GitHub リポジトリの 2 つの異なるブランチを同時に配置する必要がある場合があります。(特に gh ページを扱う場合)

私は通常、別のブランチを使用してクローンを作成し、別のフォルダーにレポの複数のクローンを作成することでこれを行います。

GitHub for Windows UI でこれを行うことは可能ですか? (単一のローカル クローンをあるブランチから別のブランチに切り替えるのではなく)
ローカル クローンを切り替える唯一の方法は、新しいクローンを毎回 UI にドラッグすることです。

4

1 に答える 1

9

I don't think it is possible to do what you want to do with the current version (1.0.9.2) but here is what I do to work on two branches.

  1. Clone the two branches from the Git Shell

    git clone https://your-project/master/ master

    git clone https://your-project/gh-pages/ gh-pages

  2. In Git for Windows, drag & drop the folder you want to work on.

  3. To switch branch, drag & drop the folder for the other branch.
于 2012-06-14T03:47:51.770 に答える