R's Workshop

Push Git Branch to Remote and Set upstream

把 local 的 branch push 到 remote 後, 通常也會同步設定將 local 的 branch 的 upstream 設成 remote branch. 這樣之後 fetch/pull 時就會自動更新. 以下紀錄作法.

Set Upstream for a Branch

Push Changes to Upstream

當 upstream 已經設定後, 可以透過已下兩種方式 push 到 remote

Pull Changes from upstream

Set Merge Rule for a Branch

Set Global Pull Rule

Ignore Merging Commit and Rebase

Reference

Git