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

Git, GitHubのチュートリアル

Git, GitHubのチュートリアル

11月18日(火)のAndroid勉強会で発表予定の資料です。
今回はGit, GitHubの主な機能や操作および開発フローについて説明しました。

◆ GitのGUIツール「SourceTree」のダウンロードはこちら
https://www.atlassian.com/ja/software/sourcetree/overview

◆ 資料で登場する主なURLリンク
https://about.gitlab.com/
http://qiita.com/masashi-sutou/stock
http://qiita.com/arai-wa/items/c2eb7387b5bf37b4ace4
http://www.slideshare.net/kotas/git-15276118
http://www.slideshare.net/ikeike443/dev-love-kansai

Masashi-Sutou

November 17, 2014
Tweet

More Decks by Masashi-Sutou

Other Decks in Programming

Transcript

  1. /9 /9:(v¢·M§»Œ¼
    Android 02014+11+18%OP+
    Masashi+Sutou

    View Slide

  2. (
    01
    48>:

    2/'-3?
    +',.$
    6157

    View Slide

  3. )
    01
    48>:

    2/'-3?
    +',.$
    6157

    View Slide

  4. *
    ÙÞvÒòƍö

    !  ÎË`ŵ]…–¼M¯ÁèvøƉĩĒ
    !  |iwƌúÁq/9:(v¢MµæÒêƖ
    !  þÀvïçÁèqĦñćĠ‰ƏÚéŤu
    =!#>+Speaker+Deck+<3A?72%h9p://goo.gl/SSaZKP

    View Slide

  5. +
    ÙÞvÒòuVovƑĀrĿĽ

      ¯ºŽ°M§»²œ§»uo[p
      eŠvÊŔuo[p
      ÙÞÒòuÕh…$eŠvņø‰ÇÜŠƕ

    View Slide

  6. ,
    ÙÞvÒòuVovƑĀrĿĽ

      ¯ºŽ°M§»²œ§»uo[p
      eŠvÊŔuo[p
      ÙÞÒòuÕh…$eŠvņø‰ÇÜŠƕ

    View Slide

  7. -
    h"ps://github.com/pricing

    View Slide

  8. .
    ÙÞvÒòuVovƑĀrĿĽ

      ¯ºŽ°M§»²œ§»uo[p
      eŠvÊŔuo[p
      ÙÞÒòuÕh…$eŠvņø‰ÇÜŠƕ

    View Slide

  9. /
    /9:(qwtb/9'(qěîgpl

    !  /9'(rw/9:(uĕƉgl""

    !  ËۙMªMtsq•¾Mž¨uěîķĢ
    !  êŲh…uw!:(>43!'/18`Ĵö

    View Slide

  10. '&
    h"ps://about.gitlab.com/

    View Slide

  11. ''
    ÈüqĤ\ˆcqwt[vq

    »²œ§»vóæHŨóæwØÞgK

    |iw/9:(‰Ĥnp}|g\K

    View Slide

  12. '(
    ÙÞvÒòuVovƑĀrĿĽ

      ¯ºŽ°M§»²œ§»uo[p
      eŠvÊŔuo[p
      ÙÞÒòuÕh…$eŠvņø‰ÇÜŠƕ

    View Slide

  13. ')
    ğøXIŬþv–¼M¯ÁèvŜrwJ

    ¶¿ªMÓĵ`à~léŤuă_np

    ĉágpÉñh…drq

    ûĥ‰ļgp[b‚\tĻŀDSD4'1

    View Slide

  14. '*
    ğøYIŬþv–¼M¯Áèq/9:(wJ

    /9:(w¢MµqĦñh…¶¿ªMv

    Ę[÷ŝqv˜´·©—M›¹¿‰

    ™²M§h…ĺĬ‰ĥlgpb†|hF

    View Slide

  15. '+
    Ę[÷ŝqv˜´·©—M›¹¿ptuJ

    !  [oƓ`ő‰sv‚\uŨÓõqĩĒ
    !  æÒÄvûĥ良]iŒ§¯£§h…
    !  æÒv TE½«·M‰×ŢŸuķńì

    View Slide

  16. ',
    [oƓ`ő‰sv‚\uŨÓõqĩĒ

    View Slide

  17. '-
    æÒÄvûĥ良]iŒ§¯£§h…

    View Slide

  18. '.
    TE½«·M‰×ŢŸuķńì

    View Slide

  19. '/
    ƈűw47-'3/?'9/43v

    3)==
    81
    1'(<47085')+v

    88:+ uZ„|hF

    View Slide

  20. (&
    01
    48>:

    2/'-3?
    +',.$
    6157

    View Slide

  21. ('
    ňéh{aVovôĢ

      7-'3/?'9/43r#+'28
      /1+8943+r88:+
      :11!+6:+89

    View Slide

  22. ((
    ňéh{aVovôĢ

      7-'3/?'9/43r#+'28
      /1+8943+r88:+
      :11!+6:+89

    View Slide

  23. ()
    7-'3/8'9/43r#+'2vŁŐŽ¶Mœ
    GitHub
    A
    A-Organization/.. C-Organization/.. E-Organization/..
    B D
    C E
    A
    C
    E
    B
    B
    A D C
    Android-Team
    E
    A
    Owner
    Owner
    Owner
    Owner
    Write
    Owners
    Team-iOS
    Owner Owner
    Owners
    Admin
    Admin Admin
    Owners

    View Slide

  24. (*
    Œ•Ÿÿľrıīt<3+7

    !  ĸĪvó滲tƒEƓqtdr

    DH»²ƒƎ0/ŭij˜¶¿§)143+5:11!

    !  <3+78uąÔgp[…Ã`<3+7

    HĴi<3+78r[\#+'2`¦­‘qĖûe†…

    DH<3+7w#+'2‰ş]pőqÆþ…7449¸MšM

    DH<3+78zvŶŊ`qŽā<3+7vĖû`ķĢ

    DHo|„EŒ•Ÿÿľw#+'2ŪċqýÚh…

    View Slide

  25. (+
    \ÇåEŁŐŽ¶Mœ‰Ñp}‚\K
    GitHub
    A
    A-Organization/.. C-Organization/.. E-Organization/..
    B D
    C E
    A
    C
    E
    B
    B
    A D C
    Android-Team
    E
    A
    Owner
    Owner
    Owner
    Owner
    Write
    Owners
    Team-iOS
    Owner Owner
    Owners
    Admin
    Admin Admin
    Owners

    View Slide

  26. (,
    <3+7ĂùvŒ•Ÿÿľ



    Team
    Œ•Ÿ
    ÿľ
    push Pull Request
    vmerge
    Team¶¿ªM
    vŶŊ€Ŧţ
    TeamÛv
    »²ĎvĶŰ
    TeamÛv
    »²vĖû
    rŦţ
    Read
    access
    team
    Write
    access
    team

    Admin
    access
    team

    View Slide

  27. (-
    ¶¿ªMvŒ•Ÿÿľ‰ĩĒ

    View Slide

  28. (.
    ňéh{aVovôĢ

      7-'3/?'9/43r#+'28
      /1+8943+r88:+
      :11!+6:+89

    View Slide

  29. (/
    /1+8943+r88:+qĄgÍ^\KK

    !  fnb„Ċ\rŏƉŅíqa…ſęŹ

    !  ov»²uŽāv/1+8943+ŏĆ
    !  ov/1+8943+uŽāv88:+ſęŹ

    View Slide

  30. )&
    /1+8943+r88:+vŁŐŽ¶Mœ

    Repository
    Milestone Milestone
    Issue #3
    Issue #1
    Issue #2
    Issue #4 Issue #2
    Issue #1
    Issue #5 Issue #3
    Closed
    Open Open Closed

    View Slide

  31. )'
    88:+v±Mœ‰òę

    View Slide

  32. )(
    ňéh{aVovôĢ

      7-'3/?'9/43r#+'28
      /1+8943+r88:+
      :11!+6:+89

    View Slide

  33. ))
    2+7-+‰^ƀ[h…:11!+6:+89!

    !  2'89+7®º¿¢z2+7-+‰^ƀ[h…

    !  !v¡Ž´¿–q˜M¨½«·Mh…
    !  ƈgbwWGæÒ­¾MqŇãg|h

    View Slide

  34. )*
    /9:(vôĢ`Ž¶Mœg€hbt…_

    View Slide

  35. )+
    01
    48>:

    2/'-3?
    +',.$
    6157

    View Slide

  36. ),
    ÎźƊŖĨ‰ĖnpďÂƂĖuƋ†‚\K

      2+2(+78uƊŖĨ‰œąh…ņqðy
      2+2(+78‰¾M“¼u˜¬Mgpŭij
      /9:(v2+2(+78uĶۉġŴ|q

    View Slide

  37. )-
    ďÂƂĖuƋ†‚\K

      2+2(+78uƊŖĨ‰œąh…ņqðy
      2+2(+78‰¾M“¼u˜¬Mgpŭij
      /9:(v2+2(+78uĶۉġŴ|q

    View Slide

  38. ).
    2+2(+78uŒ“§Ď2*‰œąh…

    !  "4:7)+#7++r˜³¿¨vIJÖqŇã
    !  "4:7)+#7++w3*4<8r')v$
    !  ũ[ĭĞ`ūÐtÃw"4:7)+#7++qČƇ

    View Slide

  39. )/
    ďÂƂĖuƋ†‚\K

      2+2(+78uƊŖĨ‰œąh…ņqðy
      2+2(+78‰¾M“¼u˜¬Mgpŭij
      /9:(v2+2(+78uĶۉġŴ|q

    View Slide

  40. *&
    2+2(+78‰¾M“¼u˜¬M-/9)143+

    View Slide

  41. *'
    2+2(+78‰¾M“¼u˜¬M-/9)143+


    View Slide

  42. *(
    2+2(+78‰¾M“¼u˜¬M-/9)143+


    View Slide

  43. *)
    2+2(+78‰¾M“¼u˜¬M-/9)143+


    View Slide

  44. **
    ÎźƊŖ2*‰Ėû)5&9+25'9+2*

    View Slide

  45. *+
    ¦¡qŭij;/22'8'8./
    8:94:2*

    View Slide

  46. *,
    ¦¡qŭij;/22'8'8./
    8:94:2*

    View Slide

  47. *-
    ďÂƂĖuƋ†‚\K

      2+2(+78uƊŖĨ‰œąh…ņqðy
      2+2(+78‰¾M“¼u˜¬Mgpŭij
      /9:(v2+2(+78uĶۉġŴ|q

    View Slide

  48. *.
    "4:7)+#7++qƂĖ)*2+2(+78

    View Slide

  49. */
    ˜´£§Ɛŷ‰ĩĒ-/989'9:8€-/95:11

    View Slide

  50. +&
    ­‹Ž¼‰¥Mœ¿–z-/9'**

    View Slide

  51. +'
    ­‹Ž¼‰˜´£§-/9)422/9
    [email protected]

    View Slide

  52. +(
    ˜´£§ÛĜ‰Ĕś-/9)422/9
    [email protected]

    View Slide

  53. +)
    /9:(z:8.-/95:8.47/-/32'89+7

    View Slide

  54. +*
    /9:(uĶŰ`ġŴ

    View Slide

  55. ++
    ˜³¿¨q€…rĂâvņu

    D-/9)143+.9958-/9.:()423)==
    81
    1'(2+2(+78-/9
    D)*2+2(+78
    D)5&9+251'9+2*2'8'8./
    8:94:2*
    D;/22'8'8./
    8:94:2*
    D-/95:1147/-/32'89+7
    D-/989'9:8
    D-/9'**D_D-/9'**2'8'8./
    8:94:2*
    D-/9)422/[email protected]'8'8./
    8:94:qhF‚‡gbKKC
    D-/95:8.47/-/32'89+7

    View Slide

  56. +,
    ďÂƂĖv|r~

    !  $¤M¼‰Ĥ]xũ[ĭĞĴötgKK
    !  ŕat¦¡qĶۀœąqa…KK
    !  Ƌ†…r˜³¿¨vÖ`ł[qh‚KK

    View Slide

  57. +-
    01
    48>:

    2/'-3?
    +',.$
    6157

    View Slide

  58. +.
    UÃVĺqêƖgp}lKK

    ! ůt…"‰ĈoVĝvqUÃVĺ
    ! /9:(
    A4

    View Slide

  59. +/
    /9:(
    A4

    View Slide

  60. ,&
    /9:(
    A4

    View Slide

  61. ,'
    iMac+
    OS+X+10.9.4+
    git+–version+2.1.2
    Mac+Book+Air+
    CentOS+6.5+
    OVPSgit+–version+1.9.0
    FMVNBIBLO+S/D53+
    vista+Home+Premium+
    Service+Pack+2+
    git+–version++
    1.9.4.msysgit.2
    PC=
    9

    View Slide

  62. ,(
    Team
    Repository
    GitHub
    GitHub9Pages
    Local9
    Remote99

    View Slide

  63. ,)
    01
    48>:

    2/'-3?
    +',.$
    6157

    View Slide

  64. ,*
    /9 /9:(‰nrē…l~u

    !  //9'‰Ħîg‚\
    !  dˆbt[/9‰Ñ‚\
    !  ż}Į]l’¶/9:(ģƁ‰ƊŖ

    View Slide

  65. ,+
    /9 /9:(‰nrē…l~u

    !  //9'‰Ħîg‚\
    !  dˆbt[/9‰Ñ‚\
    !  ż}Į]l’¶/9:(ģƁ‰ƊŖ

    View Slide

  66. ,,
    //9'O”M¡PptuJ

    !  //9'w¯¾–º³ăcvđćįħ™Ž§
    !  Ċʼn€ŒŌ‰øˆiŘLtđć`óæÄ
    !  Ċʼn€¤M¼ußh…#/58`ÇŮKK

    View Slide

  67. ,-
    h"ps://qiita.com/about

    View Slide

  68. ,.
    h"p://qiita.com/masashiAsutou/stock

    View Slide

  69. ,/
    h"p://qiita.com/araiAwa/items/c2eb7387b5bf37b4ace4

    View Slide

  70. -&
    /9 /9:(‰nrē…l~u

    !  //9'‰Ħîg‚\
    !  dˆbt[/9‰Ñ‚\
    !  ż}Į]l’¶/9:(ģƁ‰ƊŖ

    View Slide

  71. -'
    dˆbt[/9ptuJ

    !  rpħĎt/9v¯½ ¿ëĪ
    !  ˜´£§r®º¿¢‰ãƄuŇãgp…
    !  Žº§ŇãtvqōuԄ€h[

    View Slide

  72. -(
    h"p://www.slideshare.net/kotas/gitA15276118

    View Slide

  73. -)
    /9 /9:(‰nrē…l~u

    !  //9'‰Ħîg‚\
    !  dˆbt[/9‰Ñ‚\
    !  ż}Į]l’¶/9:(ģƁ‰ƊŖ

    View Slide

  74. -*
    Q%+(ŃĖÌvl~v/9:(vĚťģR

    !  ƅbp’M¼“ºM
    !  ÁĄŗİqÏ_„ų[
    !  $q/9vƂĖŇã

    View Slide

  75. -+
    Q/9:(êƖÔŋ:11!+6:+89uNR

    !  ďÂ_ƒÔŋ|q
    !  ĘbƆbôĢŇã
    !  ˜³¿¨ºŽ¿qŇã

    View Slide

  76. -,
    Q¢MµæÒêƖÔŋįÓĖȉuNR

    !  —M¡¦`Ğř[
    !  ªMœ¹¿Ņívŷŧ
    !  šŎtæÒ¤M¼vŇã
    5C68<94:"68FKDH#+
    h"p://www.slideshare.net/ikeike443/devAloveAkansai0

    View Slide

  77. --
    01
    48>:

    2/'-3?
    +',.$
    6157

    View Slide

  78. -.
    ïçÁèqĤîh…ëĪvžĐ‰Òò

    !  tkÎËu¢Mµ€æÒ`Ĵötv_
    !  tk/9:(‰ėĐh…v_
    !  ÅĔräØvŚæ‰ÍˆjpƃƔuŇã

    View Slide

  79. -/

    View Slide