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

Git セミナー

tyabu12
October 26, 2018

Git セミナー

石井研ゼミで発表したスライドです。

tyabu12

October 26, 2018
Tweet

More Decks by tyabu12

Other Decks in Technology

Transcript

  1. ϑΝΠϧ؅ཧɺͲ͏ͯ͠·͔͢ʁ - ZPLPV - ZPLPV - ZPLPV@CBLVQ - ZPLPV@ -

    ZPLPV@ - ZPLPV@PME - ZPLPV - ʜ      
  2. 

  3. ͷಋೖํ๏ ίϚϯυϥΠϯ൛ - -JOVYܥͳΒओཁͳύοέʔδ؅ཧ͔ΒҰൃΠϯετʔϧ ྫ .BD $ brew install git

    - 8JOEPXTͳΒ https://git-scm.com/downloads ͔Β (6*൛ - ͍Ζ͍Ζ͋Δ͕ 4PVSDF5SFF ͕༗໊Ͱ࢖͍΍͍͢ - αʔόʔ্Ͱ͸ίϚϯυϥΠϯͷ HJU͔͠࢖͑ͳ͍ ˠ ࠷௿ݶίϚϯυϥΠϯͰ΋Ͱ͖ΔΑ͏ʹͳ͓ͬͯ͜͏ 1 https://www.sourcetreeapp.com/ 
  4. ͷجຊ༻ޠ - 3FQPTJUPSZ - ϑΝΠϧ΍σΟϨΫτϦͷมߋཤྺΛ؅ཧ͢Δ৔ॴ - ϓϩδΣΫτϦϙδτϦͱ͍͏ೝࣝͰ΄΅0, - $PNNJU -

    มߋ಺༰Λཤྺͱͯ͠ه࿥͢Δ͜ͱ - $MPOF - ϦϙδτϦΛෳ੡͢Δ͜ͱ - 1VTI - ࣗ෼ͷϦϙδτϦͷมߋ಺༰ΛଞͷϦϙδτϦʹૹ৴͢Δ͜ͱ - 1VMM - ଞͷϦϙδτϦͷมߋ಺༰Λࣗ෼ͷϦϙδτϦʹऔΓࠐΉ͜ͱ 
  5. มߋཤྺΛอଘ  ద౰ʹϑΝΠϧΛ࡞੒ PSฤू PS࡟আ  มߋͨ͠ϑΝΠϧͷঢ়ଶΛදࣔ $ git status

     ͢΂ͯͷมߋ಺༰Λཤྺͱͯ͠ه࿥ $ git add . $ git commit –a  มߋཤྺΛදࣔ $ git log 
  6. ϦϞʔτϦϙδτϦͱͷ΍ΓऔΓ - ॳճ ϦϞʔτϦϙδτϦΛొ࿥ $ git remote add origin <repository_url>

    - ϩʔΧϧͷมߋ಺༰ΛϦϞʔτʹૹ৴ $ git push origin master - ϦϞʔτͷมߋ಺༰ΛϩʔΧϧʹऔΓࠐΉ $ git pull origin master