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

はじめてのGit #gitkyoto

はじめてのGit #gitkyoto

Gitのゆるめな勉強会
ワークショップ進行スライド

Hisateru Tanaka

February 16, 2013
Tweet

More Decks by Hisateru Tanaka

Other Decks in Technology

Transcript

  1. git status ͸ nothing to commit (working directory id clean)ͱݴ͍ͬͯ·͢ɻ࠷ޙͷίϛ

    οτ͔Β·ͩมߋ͕ͳ͍ͱ͍͏ҙຯͰ͢ɻ git log ͰաڈͷίϛοτΛࢀরͰ͖·͢ɻ ίϛοτʹ 00e8ac1be367fb350... ͱ͍͏ID͕෇ ͍͍ͯΔ͜ͱ͕Θ͔Γ·͢ɻ͜ͷίϛοτͷϢ χʔΫͳ؅ཧ൪߸ͰɺΘΓͱॏཁͰ͢ɻ
  2. ͜͜·Ͱͷ·ͱΊ git status ΍ git diff Ͱঢ়ଶΛ֬ೝͭͭ͠... มߋ → ίϛοτ

    → มߋ → ίϛοτ → ... ͜͜͸೉͘͠ͳ͍Ͱ͢Ͷɻ
  3. ͜͜·Ͱͷ·ͱΊ git remote add ϦϙδτϦ໊ ΞυϨε git push -u ϦϙδτϦ໊

    ϒϥϯν໊ git push (஫:ϒϥϯν͝ͱ) git pull git clone ΞυϨε ۭͷϑΥϧμ͸ແࢹ͞ΕΔ git branch ϒϥϯν໊ origin/ϒϥϯν໊