tanaka's Programming Memo

プログラミングについてのメモ。

EGitでリモートリポジトリをUpstreamに登録する

key : eclipse git egit github upstream

EGitでのリモートリポジトリの設定

  1. プロジェクトを右クリック→Team→Show in Repositories ViewでGit Repositoriesビューを開く。
  2. 対象プロジェクト下の[Remotes]を右クリック→[Create Remote...]をクリック。
  3. Remote nameは[origin]のままで、Configure pushでOK
  4. URIGitHubリポジトリを登録する。
  5. Ref mappingsで[Add]を押し、[Ctrl]+[Space]を押してブランチを検索して、マスターを追加する。
  6. [Save]で閉じる。

以上を設定したら、右クリック→[Team]→[Fetch from Upstream]で取得。Push to Upstream]でプッシュ可能。