1.3. Git Perspective でのブランチの管理

1.3.1. 新規ブランチの作成

Git パースペクティブを使用して新規ブランチを作成する方法を説明します。

手順

  1. CodeReady Studio を起動します。
  2. Git Perspective を開きます。
  3. リポジトリーを展開します。
  4. branchesRemote Tracking で、masterCreate Branch を右クリックします。

    crs create new branch

    Create Branch ウインドウが表示されます。

    crs create new branch window
  5. Select をクリックして、新規ブランチのソースを選択します。
  6. ブランチに名前を付けます。
  7. Configure upstream for push and pull および Checkout new branch チェックボックスを選択します。
  8. When pulling フィールドでオプションを選択します。
  9. Finish をクリックします。

新たに追加されたブランチが、CodeReady Studio の branchesLocalGit Repositories ビューに表示されます。

crs new branch