Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[Sokoos][教育訓練] Git - 1

HeChien Hsu
September 04, 2013

[Sokoos][教育訓練] Git - 1

第一次教授Git

HeChien Hsu

September 04, 2013
Tweet

More Decks by HeChien Hsu

Other Decks in Technology

Transcript

  1. ⼯工作流程 • git init || git clone • (coding ...)

    • git add files • git commit -m “message”
  2. branch? • git branch new_branch • 可以建⽴立new_branch分⽀支 • git checkout

    new_branch • 切到new_branch分⽀支 • git checkout -b another_new_branch • 建⽴立並且切到another_new_branch分⽀支
  3. 與遠端say hello • git remote add origin xxxx • git

    remote add bitbucket git@bitbucket.... • git remote -v <= 可以觀看有哪些remote
  4. push / pull • git push origin master • git

    push ⺫⽬目的地 ⺫⽬目標branch • git pull origin master • git pull 來源地 來源branch