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

E58d4a4aae067a3e1ca150bc0b5daef7?s=128

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

  2. ( 01    48>:    2/'-3?

    +',.$  6157
  3. ) 01    48>:    2/'-3?

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

  5. + ÙÞvÒòuVovƑĀrĿĽ    ¯ºŽ°M§»²œ§»uo[p    eŠvÊŔuo[p   

    ÙÞÒòuÕh…$eŠvņø‰ÇÜŠƕ
  6. , ÙÞvÒòuVovƑĀrĿĽ    ¯ºŽ°M§»²œ§»uo[p    eŠvÊŔuo[p   

    ÙÞÒòuÕh…$eŠvņø‰ÇÜŠƕ
  7. - h"ps://github.com/pricing

  8. . ÙÞvÒòuVovƑĀrĿĽ    ¯ºŽ°M§»²œ§»uo[p    eŠvÊŔuo[p   

    ÙÞÒòuÕh…$eŠvņø‰ÇÜŠƕ
  9. / /9:(qwtb/9'(qěîgpl  !  /9'(rw/9:(uĕƉgl""  !  ËۙMªMtsq•¾Mž¨uěîķĢ !  êŲh…uw!:(>43!'/18`Ĵö

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

  11. '' ÈüqĤ\ˆcqwt[vq  »²œ§»vóæHŨóæwØÞgK  |iw/9:(‰Ĥnp}|g\K

  12. '( ÙÞvÒòuVovƑĀrĿĽ    ¯ºŽ°M§»²œ§»uo[p    eŠvÊŔuo[p   

    ÙÞÒòuÕh…$eŠvņø‰ÇÜŠƕ
  13. ') ğøXIŬþv–¼M¯ÁèvŜrwJ  ¶¿ªMÓĵ`à~léŤuă_np  ĉágpÉñh…drq  ûĥ‰ļgp[b‚\tĻŀDSD4'1

  14. '* ğøYIŬþv–¼M¯Áèq/9:(wJ  /9:(w¢MµqĦñh…¶¿ªMv  Ę[÷ŝqv˜´·©—M›¹¿‰  ™²M§h…ĺĬ‰ĥlgpb†|hF

  15. '+ Ę[÷ŝqv˜´·©—M›¹¿ptuJ  !  [o Ɠ` ő‰ sv‚\u ŨÓõqĩĒ ! 

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

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

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

  19. '/ ƈűw47-'3/?'9/43v  3)== 81 1'( <47085')+v  88:+ uZ„|hF

  20. (& 01    48>:    2/'-3?

    +',.$  6157
  21. (' ňéh{aVovôĢ    7-'3/?'9/43r#+'28    /1+8943+r88:+   

    :11!+6:+89
  22. (( ňéh{aVovôĢ    7-'3/?'9/43r#+'28    /1+8943+r88:+   

    :11!+6:+89
  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
  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… 
  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
  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     
  27. (- ¶¿ªMvŒ•Ÿÿľ‰ĩĒ 

  28. (. ňéh{aVovôĢ    7-'3/?'9/43r#+'28    /1+8943+r88:+   

    :11!+6:+89
  29. (/ /1+8943+r88:+qĄgÍ^\KK  !  fnb„Ċ\rŏƉŅíqa…ſęŹ  !  ov»²uŽāv/1+8943+ŏĆ !  ov/1+8943+uŽāv88:+ſęŹ

    
  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
  31. )' 88:+v±Mœ‰òę 

  32. )( ňéh{aVovôĢ    7-'3/?'9/43r#+'28    /1+8943+r88:+   

    :11!+6:+89
  33. )) 2+7-+‰^ƀ[h…:11!+6:+89!  !  2'89+7®º¿¢z2+7-+‰^ƀ[h…  !  !v¡Ž´¿–q˜M¨½«·Mh… !  ƈgbwWGæÒ­¾MqŇãg|h

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

  35. )+ 01    48>:    2/'-3?

    +',.$  6157
  36. ), ÎźƊŖĨ‰ĖnpďÂƂĖuƋ†‚\K    2+2(+78uƊŖĨ‰œąh…ņqðy    2+2(+78‰¾M“¼u˜¬Mgpŭij   

    /9:(v2+2(+78uĶۉġŴ|q
  37. )- ďÂƂĖuƋ†‚\K    2+2(+78uƊŖĨ‰œąh…ņqðy    2+2(+78‰¾M“¼u˜¬Mgpŭij   

    /9:(v2+2(+78uĶۉġŴ|q
  38. ). 2+2(+78uŒ“§Ď 2*‰œąh…  !  "4:7)+#7++r˜³¿¨vIJÖqŇã !  "4:7)+#7++w</3*4<8r')v$ !  ũ[ĭĞ`ūÐtÃw"4:7)+#7++qČƇ

  39. )/ ďÂƂĖuƋ†‚\K    2+2(+78uƊŖĨ‰œąh…ņqðy    2+2(+78‰¾M“¼u˜¬Mgpŭij   

    /9:(v2+2(+78uĶۉġŴ|q
  40. *& 2+2(+78‰¾M“¼u˜¬M-/9)143+ 

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

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

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

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

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

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

  47. *- ďÂƂĖuƋ†‚\K    2+2(+78uƊŖĨ‰œąh…ņqðy    2+2(+78‰¾M“¼u˜¬Mgpŭij   

    /9:(v2+2(+78uĶۉġŴ|q
  48. *. "4:7)+#7++qƂĖ)*2+2(+78 

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

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

  51. +' ­‹Ž¼‰˜´£§-/9)422/9 2@C 

  52. +( ˜´£§ÛĜ‰Ĕś-/9)422/9 2@C 

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

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

  55. ++ ˜³¿¨q€…rĂâvņu  D-/9)143+.9958 -/9.:( )42 3)== 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/9B2@2'8'8./ 8:94:qhF‚‡gbKKC D-/95:8.47/-/32'89+7
  56. +, ďÂƂĖv|r~  !  $¤M¼‰Ĥ]xũ[ĭĞĴötgKK !  ŕat¦¡qĶۀœąqa…KK !  Ƌ†…r˜³¿¨vÖ`ł[qh‚KK

  57. +- 01    48>:    2/'-3?

    +',.$  6157
  58. +. UÃVĺqêƖgp}lKK  ! ůt…"‰ĈoVĝvqUÃVĺ ! /9:( A4<r[\æÒ­¾MqêƖ ! Z…uÝôĢ‰œąh…§M»M 

  59. +/ /9:( A4<ptuKJ  ! /9:(‰Ĥnl^ÐÂæÒ­¾Mvdr ! #+'2q»²‰Çomcįħ,470gt[ ! ®º¿¢q¡•Ņíh…vqěî`ŞK 

  60. ,& /9:( A4<v­¾MŽ¶Mœ  LJMGLIEGLC9clone968@1Q.R.=A$6<;BN 1. git clone 5. master(*.%

     Pull Request 6. branch master(*.%  merge  2. master(*.% git branch 7. &)-! 8. branch<; 3. #& ." 4. commit  branch  push 9. git pull merge OK 2/9= Yes Yes No No
  61. ,' iMac+ OS+X+10.9.4+ git+–version+2.1.2 Mac+Book+Air+ CentOS+6.5+ OVPS<SSHP+ git+–version+1.9.0 FMVNBIBLO+S/D53+ vista+Home+Premium+

    Service+Pack+2+ git+–version++ 1.9.4.msysgit.2  PC= 9
  62. ,( Team Repository GitHub GitHub9Pages Local9 Remote99

  63. ,) 01    48>:    2/'-3?

    +',.$  6157
  64. ,* /9 /9:(‰nrē…l~u  !   //9'‰Ħîg‚\ !  dˆbt[/9‰Ñ‚\ ! 

    ż}Į]l’¶/9:(ģƁ‰ƊŖ
  65. ,+ /9 /9:(‰nrē…l~u  !   //9'‰Ħîg‚\ !  dˆbt[/9‰Ñ‚\ ! 

    ż}Į]l’¶/9:(ģƁ‰ƊŖ
  66. ,, //9'O”M¡PptuJ  !   //9'w¯¾–º³ăcvđćįħ™Ž§ !  Ċʼn€ŒŌ‰øˆiŘLtđć`óæÄ !  Ċʼn€¤M¼ußh…#/58`ÇŮKK

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

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

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

  70. -& /9 /9:(‰nrē…l~u  !   //9'‰Ħîg‚\ !  dˆbt[/9‰Ñ‚\ ! 

    ż}Į]l’¶/9:(ģƁ‰ƊŖ
  71. -' dˆbt[/9ptuJ  !  rpħĎt/9v¯½ ¿ëĪ !  ˜´£§r®º¿¢‰ãƄuŇãgp… !  Žº§ŇãtvqōuԄ€h[

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

  73. -) /9 /9:(‰nrē…l~u  !   //9'‰Ħîg‚\ !  dˆbt[/9‰Ñ‚\ ! 

    ż}Į]l’¶/9:(ģƁ‰ƊŖ
  74. -* Q%+(ŃĖÌvl~v/9:(vĚťģR  !  ƅbp’M¼“ºM !  ÁĄŗİqÏ_„ų[ !  $q/9vƂĖŇã

  75. -+ Q/9:(êƖÔŋ:11!+6:+89uNR  !  ďÂ_ƒÔŋ|q !  ĘbƆbôĢŇã !  ˜³¿¨ºŽ¿qŇã

  76. -, Q¢MµæÒêƖÔŋįÓĖȉuNR  !  —M¡¦`Ğř[ !  ªMœ¹¿Ņívŷŧ !  šŎtæÒ¤M¼vŇã 5C68<94:"68FKDH#+

    h"p://www.slideshare.net/ikeike443/devAloveAkansai0
  77. -- 01    48>:    2/'-3?

    +',.$  6157
  78. -. ïçÁèqĤîh…ëĪvžĐ‰Òò  !  tkÎËu¢Mµ€æÒ`Ĵötv_ !  tk/9:(‰ėĐh…v_ !  ÅĔräØvŚæ‰ÍˆjpƃƔuŇã

  79. -/