Pro Yearly is on sale from $80 to $50! »

Git Workshop 01

481a04548eda340e5cf166b487792ee5?s=47 Li-Hsuan Chen
September 22, 2016

Git Workshop 01

481a04548eda340e5cf166b487792ee5?s=128

Li-Hsuan Chen

September 22, 2016
Tweet

Transcript

  1. (JU8PSLTIPQ 痧♧㔐 ⴽ䙲溫涸䖎矦㋲  ꤫愴蠩

  2. 㣐笧 ˖ 晝劥䱾ⵖ捀➊랃 ˖ 晝劥䱾ⵖ禺窡涸䊴ⴽ ˖ (JU ˖ 䒊用SFQPㄤ鹎遤DPNNJU ˖

    (JU涸㛇劥崩玑
  3. 䧮涸匢䱾竤娜 㷸欰 儘劍 〵⚥ 厥䱺呪Ⱇ぀ 倞ⶾ" 倞ⶾ# 僱宐㛔 /PX 搂

    47/ 5'7$ (JU 㷸绢(JU (JU 㼬Ⰵ(JU 㼬Ⰵ崩玑 ⾲47/ 㼬Ⰵ(JU 㼬Ⰵ崩玑 (JU
  4. 晝劥䱾ⵖ捀➊랃 WFSTJPODPOUSPM h⾩ⴗ׶آؑ؎اٝ

  5. 㣐㹻䥰鑪鿪鸏垺⨞麕ゅ

  6. 齡⦐˘ ⡹剤⨞晝劥䱾盘 鼩僽⪔⟨玑䒭焺㌨ 剤ザ剤ザ

  7. None
  8. None
  9. 䙲䪾匌銯佖㡏䱈 䟝銴鎹ꏗ荈䊹⨞➊랃 䙦랃騈ⴽ➃♧饱ざ⡲ 䙲ꨶ舡㡏䱈䟝銴⪔⟨ ⵌⰦ➮ꨶ舡䟝銴糒糵⨞㼠呪

  10. 晝劥䱾ⵖ禺窡 7FSTJPO$POUSPM4ZTUFN

  11. ꧌⚥䒭 ⴕ侕䒭 晝劥䱾ⵖ嚌ⴕ

  12. h(JU5PXFS

  13. ꧌⚥䒭 ⴕ侕䒭 晝劥䱾ⵖ嚌ⴕ 4VCWFSTJPO 47/ 5FBN'PVOEBUJPO7FSTJPO$POUSPM (JU

  14. ꧌⚥䒭 ⴕ侕䒭 晝劥䱾ⵖ盘椚剪⹡ #JU#VDLFU 740OMJOF (JU)VC #JU#VDLFU (JU-BC 740OMJOF 5'4

    5'4
  15. Ꟛ㨥㓫

  16. 㖈Ꟛ㨥⛓⵹ (6* $PNNBOE

  17. ♶銴湬䱺 ⿡溏䊨Ⱘ剅

  18. 溫涸銴Ꟛ㨥✫

  19. 倞䒊隶刿鎹ꏗ $ cd /to/your/path $ git init $ touch a.txt

    $ git add a.txt $ git commit -m “add a.txt” ⯓⹛䩛⨞⨞溏 ⨞㸤䖕欽4PVSDF5SFF溏溏䧭卓
  20. 倞䒊隶刿鎹ꏗ $ cd /to/your/path $ git init $ touch a.txt

    $ git add a.txt $ git commit -m “add a.txt” ⯓⹛䩛⨞⨞溏 ⨞㸤䖕欽4PVSDF5SFF溏溏䧭卓
  21. 倞䒊隶刿鎹ꏗ $ cd /to/your/path $ git init $ touch a.txt

    $ git add a.txt $ git commit -m “add a.txt” ⯓⹛䩛⨞⨞溏 ⨞㸤䖕欽4PVSDF5SFF溏溏䧭卓
  22. 䒊用⮭㶸䏨 ˖ 3FQPTJUPSZ矦珖SFQP⚥俒〳珖⦍⮭䧴⮭㶸䏨 ˖ 劥㖒畮㶸佞䨾剤騈HJU剤ꡠ⤚涸匌銯涸㖒倰 ˖ 㖈ㆭ鼹 ˖ .git须俲㣰 $

    git init 鑑衽荈䊹䪪䪪溏鸏⦐须俲㖈ㆭ鼹
  23. 倞䒊隶刿鎹ꏗ $ cd /to/your/path $ git init $ touch a.txt

    $ git add a.txt $ git commit -m “add a.txt” ⯓⹛䩛⨞⨞溏 ⨞㸤䖕欽4PVSDF5SFF溏溏䧭卓
  24. (JU涸♲⦐ꥣ媯 $ touch a.txt 8PSLJOH%JSFDUPSZ 䊨⡲湡ꏗ 4UBHF *OEFY  程䒸⼦

    -PDBM3FQPTJUPSZ 劥㖒⮭㶸䏨 劢鄄鷆髠涸墂呪 佞㖈TUBHF涸墂呪 䩞〳⟃鄄⸈Ⰵ晝劥䱾ⵖ 鄄晝劥䱾ⵖ涸墂呪
  25. (JU涸♲⦐ꥣ媯 $ touch a.txt 8PSLJOH%JSFDUPSZ 䊨⡲湡ꏗ 4UBHF *OEFY  程䒸⼦

    -PDBM3FQPTJUPSZ 劥㖒⮭㶸䏨
  26. 倞䒊隶刿鎹ꏗ $ cd /to/your/path $ git init $ touch a.txt

    $ git add a.txt $ git commit -m “add a.txt” ⯓⹛䩛⨞⨞溏 ⨞㸤䖕欽4PVSDF5SFF溏溏䧭卓
  27. (JU涸♲⦐ꥣ媯 8PSLJOH%JSFDUPSZ 䊨⡲湡ꏗ 4UBHF *OEFY  程䒸⼦ -PDBM3FQPTJUPSZ 劥㖒⮭㶸䏨 $

    touch a.txt $ git add a.txt
  28. 倞䒊隶刿鎹ꏗ $ cd /to/your/path $ git init $ touch a.txt

    $ git add a.txt $ git commit -m “add a.txt” ⯓⹛䩛⨞⨞溏 ⨞㸤䖕欽4PVSDF5SFF溏溏䧭卓
  29. 䒊用⮭㶸䏨 ˖ commit䪾湡⵹TUBHF涸墂呪隶刿⸈Ⰵ晝劥䱾ⵖ ˖ -mDPNNJU鎝䜂涸BH䖕꬗䱺♳鸏♧妄私ꏗ 涸鎝䜂 $ git commit -m

    “Add a.txt” 鑑衽䪪䪪溏剤➊랃Ⱖ➮倰䒭〳⟃㻨DPNNJU鎝䜂
  30. (JU涸♲⦐ꥣ媯 8PSLJOH%JSFDUPSZ 䊨⡲湡ꏗ 4UBHF *OEFY  程䒸⼦ -PDBM3FQPTJUPSZ 劥㖒⮭㶸䏨 $

    touch a.txt $ git add a.txt $ git commit -m “Add a.txt”
  31. (JU涸♲⦐ꥣ媯 8PSLJOH%JSFDUPSZ 䊨⡲湡ꏗ 4UBHF *OEFY  程䒸⼦ -PDBM3FQPTJUPSZ 劥㖒⮭㶸䏨 $

    touch a.txt $ git add a.txt $ git commit -m “Add a.txt”
  32. 倞䒊隶刿鎹ꏗ $ cd /to/your/path $ git init $ touch a.txt

    $ git add a.txt $ git commit -m “add a.txt” ⯓⹛䩛⨞⨞溏 ⨞㸤䖕欽4PVSDF5SFF溏溏䧭卓
  33. 倞䒊隶刿鎹ꏗ $ cd /to/your/path $ git init ⴲ㨥⻋HJU⮭㶸䏨 $ touch

    a.txt 㖈䊨⡲湡ꏗ倞㟞BUYU $ git add a.txt 䪾BUYU⸈ⰅTUBHF $ git commit -m “add a.txt” 䪾隶刿⸈Ⰵ晝劥䱾ⵖ ⯓⹛䩛⨞⨞溏 ⨞㸤䖕欽4PVSDF5SFF溏溏䧭卓
  34. 劥媯㼭穡 ˖ 钢陏(JU㖈劥㖒畮涸♲⦐ꥣ媯 ˖ 濼麥㥶⡦鷴麕(JU䭸⟂⨞ⵌ倞㟞隶刿⿻私ꏗ ˖ 濼麥㥶⡦⢪欽4PVSDF5SFF錚溏(JU涸私ꏗ

  35. 籏穡 ˖ 捀➊랃銴⢪欽晝劥䱾ⵖ涸⾲㔔 ˖ ꧌⚥䒭ㄤⴕ侕䒭晝劥䱾ⵖ涸䊴ⴽ ˖ 湡⵹剤ㆭ❉晝劥䱾ⵖ盘椚涸剪⹡ ˖ (JU劥㖒⮭㶸䏨涸♲⦐ꥣ媯 ˖

    㥶⡦⨞ⵌ矦㋲涸倞㟞⮭㶸䏨隶刿⿻私ꏗ
  36. 穡勲䖕⡹〳⟃⨞➊랃 ˖ 䟝䟝溏荈䊹涸䊨⡲竤뀿⚥ㆭ❉㔮ꨈ姻㥪〳⟃欽 晝劥䱾ⵖ鍑对 ˖ 㢵箻绢䎙妄鸏♧妄涸崞⹛Ⰹ㺂箻绢涸ず儘⚛ず 儘䪾殹♴㛂遤涸⹛⡲涸わ纏䙂ⴀ⢵⸈幀⽫韍 ˖ 溏溏剤➊랃♶♧垺涸䭸⟂〳⟃欽欽溏 ˖

    〫銴剤㉏겗♶銴ぴ㌞㉏㖈㜥涸Ⱖ➮➃
  37. 2"儘꟦

  38. 5IBOL:PV