GitHubå®è·µå ¥éãèªãã§Gitã¨ãGitHubã«ã¤ãã¦èãã
みんなでGitHubを勉強するにゃんっ!ã«åå ããã®ã§ããããGitã¨ãGitHubã«ã¤ãã¦ååå¼·ã¡ãã
ããããGitHubå®è·µå ¥é ~Pull Requestã«ããéçºã®å¤é© (WEB+DB PRESS plus)ãèè ã®å¤§å¡ããããéä»ããã ãããèªäºããããã¨ããããã¾ãã
ç®æ¬¡ãã¿ãã¨ãªããªããããã ã£ãã®ã§ãæå¾ ããªããèªãã ãç´ æ´ãããã
http://gihyo.jp/magazine/wdpress/plus/978-4-7741-6366-6/0001
第1ç« GitHubã®ä¸çã¸ãããã
第2ç« Gitã®å°å
¥
第3ç« GitHubãå©ç¨ããããã®æºå
第4ç« Gitãæä½ããªããå¦ã¶
第5ç« GitHubã®æ©è½ãå¾¹åºè§£èª¬
第6ç« ã¯ããã¦ã®Pull Request
第7ç« Pull Requestãéããã¦ããã
第8ç« GitHubã¨é£æºãããã¼ã«ã¨ãµã¼ãã¹
第9ç« GitHubãå©ç¨ããéçºããã¼
第10ç« ä¼ç¤¾ã§GitHubã使ãã
Appendix AãGitHubããµãã¼ãããGUIã¯ã©ã¤ã¢ã³ã
Appendix BãGistã§æ軽ã«ã³ã¼ããå
±æ
æ¬æ¸ã®ç¹å¾´ã¯Gitã®åºæ¬çãªã³ãã³ããªã©ã®èª¬æãªã©ã¯å¯è½ãªéãçç¥ãã¦ãGitHubãå©ç¨ããã¯ã¼ã¯ããã¼ã«ç¦ç¹ããã¦ã¦ããã¨ããã§ããã
Gitãé£ããã¨ãã人ã¯å¤ãããããã¯ãããªãã¨ã¯ãªãã¨èãã¦ããã®ã ãã©ããªãã§é£ããã¨æããã®ããªï¼id:hyoshiok:20140201:p1 id:hyoshiok:20140205:p1
Gitã®å©ç¨ã®åºæ¬ã¯ãã©ã³ããä½ã£ã¦ããã§ä½ãã®ä½æ¥ããã¦ã³ããããããããã¦ãªã¢ã¼ãã®ã¬ãã¸ããªã¸ããã·ã¥ãªããã«ãªã¯ã¨ã¹ããããã
éä¸åã®ãã¼ã¸ã§ã³ã³ã³ããã¼ã«ã·ã¹ãã ï¼VCSï¼ã¨ã®é常ã§ã®ä½æ¥ã®éãã¯ããã©ã³ããæ軽ã«ä½ã£ã¦ãã®ãã©ã³ãä¸ã§ä½æ¥ãè¡ãã¨ããã¨ãããã¨æããæåã®VCSãgitããå ¥ã£ã人ã¯ããã©ã³ããä½ã£ã¦ããã§ä½æ¥ãããã¨ããã®ãå½ããåã ã¨æãããå¤æ¥ã®éä¸åã«æ £ãã¦ãã人ã¯ããã«ã¨ã¾ã©ãã®ãããããªãã
ãããããã¼ã¸ã§ã³ç®¡çã®ã¹ãã«ã身ã«ä»ããå ´åãä¸è¦ã·ã³ãã«ã§ããéä¸åã身ã«ä»ãã¦ããåæ£åãå¦ã¶ã¹ãã¨èãã人ããã¾ããã§ãããä»å¾éä¸åã使ãã±ã¼ã¹ãå°ãªããããããããé åããããå¿ è¦ã¯ãªãã¨èè ã¯èãã¦ãã¾ãã21ãã¼ã¸
ã³ã¼ããå¤æ´ããã®ã¯ãï¼ï¼æ°æ©è½ã®å®è£ ãï¼ï¼æ¢åæ©è½ã®å¤æ´æ¡å¼µãï¼ï¼ãã°ä¿®æ£ãªã©ã«ãªããããã©ã³ããåãã¨ããä½æ¥ã¯ãèªåã®ä¸ã§æèãã¦ãä¸è¨ã®ã©ãããããã¨ãããã¨ãæ示çã«å®£è¨ãããã¨ã«ä»ãªããªããåã«ã¯ã¼ãã³ã°ãã£ã¬ã¯ããªã§ãªãã¨ãªããã«ããã«ããã£ã¦ãä¸åºåããã¤ããããã³ãããã§ããããã¨ãããã¨ã§ã¯ãªãã
éä¸åã®å ´åããã©ã³ããæ軽ã«ä½ã£ã¦ãããããããã«ã³ããããã¦éçºã®æ´å²ãä½ã£ã¦ããã¨ãããã¨ã¯ãã¼ã¸ã®ã³ã¹ããé«ãã®ã§æ¨å¥¨ã¯ãããªããã¨ãããããæ軽ã«ãã®ãããªãã¨ã¯åºæ¥ãªãã
Gitã®å ´åããã©ã³ããä½ãã¨ãã«ä¸è¨ã®ã©ã®ä½æ¥ãããã®ãã¨ãããã¨ããã©ã³ãåã§åããããã«ãã¦è¡ããã³ããããã°ãæ示çã«ããã宣è¨ãããä¾ãã°Fix bug-1234ã¨ãAdd feature-Xã¨ãã
æ¬æ¸ã¯gitããã³GitHubã®åºæ¬çãªæä½ã«ã¤ãã¦ï¼ç« ã¾ã§ã§è§£èª¬ããï¼ç« ã§GitHubã®ä¸»ãªæ©è½ã«ã¤ãã¦è©³ç´°ã«è§£èª¬ãã¦ããã
ããã¦ãï¼ç« ãï¼ç« ã§Pull Requestã®éãæ¹ãåãåãæ¹ã説æãã¦ããããã®ï¼ç« ãï¼ç« ã¯æ¬æ¸ã®ç½çã ã¨æããä¸è¨ã®GitHubã®ã¬ãã¸ããªãç¨æãã¦ãèªè ãå®éã«Pull requestã試ããããã«ãã¦ããã
https://github.com/github-book/first-pr
ããããæ©éãæ¬æ¸ãèªãã§çºè¦ãã誤æ¤ãpull requestãã¦ã¿ãã
https://github.com/github-book/first-pr/pull/2
ãªã«ããããããç´ã®æ¬ã¨ã®ã³ã©ãã¬ã¼ã·ã§ã³ä¼ç»ãGitHubãå©ç¨ãã¦GitHubã®æ©è½ãå¦ã¶ãå¾æ¥ã®æ¬ã§ãæ²ç¤ºæ¿ãªã©ãä½ã£ã¦ãããã§èè ã¨ããã¨ãã§ããã¨ããã®ã¯ãªãããªãã£ãããæ¬æ¸ã§ã¯GitHubãå©ç¨ãã¦ããã®æ©è½ã®å®éãããããããã«ãªã£ã¦ãããã¤ããã¼ã·ã§ã³ã ã¨æãã
ï¼ç« ã®GitHubãå©ç¨ããã¯ã¼ã¯ããã¼ã®è§£èª¬ããããããããé常ã«å ·ä½çã ãgitã®ä½¿ãæ¹ã¯ç¥ã£ã¦ããã®ã ãã©ãã©ããä»äºã§ãã¾ã使ãããªãã¦ããªãã¨æãã¦ãã人ã¯ããã®ï¼ç« ããã£ããèªããã¨ããããããããGitHub Flowã¨Git Flowã¯ååãä¼¼ã¦ãããå¥ã®ã¯ã¼ã¯ããã¼ã§ãããåè ã®æ¹ãã·ã³ãã«ãªã¯ã¼ã¯ããã¼ã ã
GitãGitHubãå©ç¨ãã人ã«ã¯ããããã®ä¸åã«ãªã£ã¦ããã
ã¨ãããã¥ãæ¬æ¸ãèªãã å¾ã«ãããã¥ã¢ã«ãå®ç¨Gitï¼è±èªçã¯æ¢ã«ç¬¬äºçãåºã¦ããï¼å ¥éGitãèªãã¨ç解ãæ·±ã¾ãã¨æãã
LinusãGitã«ã¤ãã¦ãªããè¨ã£ã¦ãã
å½¼ã¯CVSããã®æ¹è¯çã®Subversionãé ããããããããªãã®ã¨ãããããªæãã§æ¹å¤ãã¦ãã¦ãã¾ããããã¡ãã£ã¨ç©ä¾¿ãªè¨ãæ¹ãããããããªããã¨æãã®ã ãã©ãåºæ¬çã«ã¯ã大è¦æ¨¡ã§éçºããå ´åã¯ãåæ£åããããå¾ãªãã¨æè¨ãã¦ããã
åæ£åã§ããã°ã常ã«ã¤ã³ã¿ã¼ãããã«æ¥ç¶ãã¦ããªãã¦ãããããä»®ã«æ¥ç¶ãã¦ããã¨ãã¦ãè¶ é«éã®ãããã¯ã¼ã¯ãå¿ è¦ã¨ããªãã§ãã©ãã©ãåèªãç¬ç«ãã¦ä½æ¥ãã§ãããããä¿¡é ¼æ§ã¯é«ãããé«éã§ããã
ä½ããã®ä½æ¥ãããã¨ãããã¨ã¯ãã©ã³ããä½ããã¨ã«ã»ããªããªãã¦ãä½ããã®ä½æ¥ã¯ãã©ã³ãã®ä¸ã§è¡ããããããã¯åççã«ã¯åæ£éçºã§ããããå¾ãªãã¦ã大è¦æ¨¡ãªéçºã®å ´åãåæ£åã®ãã¼ã«ã«å¿ ç¶çã«ãªããããå¾ãªãã
対çãªã³ãã¼ãã¤ã³ã¿ã¼ãããä¸ã®ã©ããã«åå¨ããã®ã§ãä¿¡é ¼æ§ãé«ãã誰ããæªæãæã£ã¦ã³ã¼ããæ¹ãããããã«ãããããããã¨ã¯é£ããï¼äºå®ä¸ä¸å¯è½ï¼ãå¾æ¥ã®ãã¡ã¤ã«ããã¨ã¨ãããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã ã¨ãã½ã¼ã¹ã³ã¼ããç ´å£ããã¦ãã¦ãèªåçã«æ¤åºãããªãããgitã®å ´åãããã·ã¥å¤ã«ãã£ã¦ä¿è¨¼ããã
ãã®ã»ãããããããã2007å¹´ããã®æ åãªã®ã§ãgitãå©ç¨ãã¦Linuxã®ã½ã¼ã¹ã³ã¼ãã管çãå§ãã¦2å¹´ãããã®çµé¨ãèªã£ã¦ããã®ã§ãå®ã«èå³æ·±ãããããã¦è¦ã¦ã¿ãã¨ããã¨æãã