การ checkout branch จาก upstream - MUMT-IT/mis2018 GitHub Wiki

สมมติว่าเราต้องการ checkout branch ชื่อ performance จาก upstream repository ให้ดำเนินการดังนี้

  1. ลบ branch ที่เคย fetch มาก่อนหน้านี้ (ถ้ามี)

$ git branch -D performance

  1. จากนั้น checkout upstream branch

$ git checkout -b performance upstream/performance

$ git push --set-upstream origin performance