1. . Perl ã®åæããã¹ã¿ã¼ããã! . ã³ã³ããã¹ãã¨ãªãã¡ã¬ã³ã¹ãæãç©ã«! è¿è¤ åéª @yoshiyuki kondo YAPC::Asia 2012 (2012/9/29) è¿è¤ åéª (@yoshiyuki kondo) ã³ã³ããã¹ãã¨ãªãã¡ã¬ã³ã¹ãæãç©ã«! YAPC::Asia 2012 (2012/9/29) 1 / 57 2. èªå·±ç´¹ä» è¿è¤ åéª (ããã©ã ãããã) è¿è¤ åéª (@yoshiyuki kondo) ã³ã³ããã¹ãã¨ãªãã¡ã¬ã³ã¹ãæãç©ã«! YAPC::Asia 2012 (2012/9/29) 2 / 57 3. èªå·±ç´¹ä» è¿è¤ åéª (ããã©ã ãããã) Twitter: @yoshiyuki_kondo è¿è¤ åéª (@yoshiyuki kondo) ã³ã³ããã¹ãã¨ãªãã¡ã¬ã³ã¹ãæãç©ã«! YAPC::Asia 2012 (2012
Sencha Touchã®éçºãã¼ã ãHTML5ã§é«éã«åä½ããFacebookã¢ããªãéçºãããã¨ãç´¹ä»ãã1ã¤åã®è¨äº ãFacebookã®ã¢ãã¤ã«ã¢ããªã失æããçç±ã¯HTML5ã®ãããããªããHTML5ã§ãµã¯ãµã¯åãFacebookã¢ããªãä½ã£ã¦è¦ããSencha Touchéçºãã¼ã ãã¯ãé常ã«å¤ãã®èªè ã«æ³¨ç®ããã¾ããã ãã®è¨äºã§ç´¹ä»ããSencha Touchéçºãã¼ã ã®ããã°ãThe Making of Fastbook: An HTML5 Love Storyãã®å¾åã§ã¯ãã©ã®ãããªãã¯ããã¯ãç¨ãã¦é«éãªHTML5ã¢ããªã±ã¼ã·ã§ã³ãå®ç¾ããã®ããç´¹ä»ããã¦ãã¾ãã ãã®è¨äºã§ã¯ããã®3ã¤ã®ãã¯ããã¯ã«ã¤ãã¦ãã¤ã³ããç´¹ä»ãããã¨æãã¾ããã¿ã¤ã ã©ã¤ã³ããã¥ã¼ã¹ãã£ã¼ãã®ãããªã¦ã¼ã¶ã¼ã¤ã³ã¿ã¼ãã§ã¤ã¹ãåããã¢ãã¤ã«ã¢ããªã±ã¼ã·ã§ã³ã¯ãããããåºãéçºããã¦ãããã¨ã«ãª
åæ£ SCM ã¨ã¯ãããããã¯ã¢ããã¯ããã¨ãããããã®ã§ããgit ã®ãªã¢ã¼ããªãã¸ããªãç ´æããå ´åãªã©ã«å¾©å å ãæ¢ãããã«ã誰ãæã£ã¦ããã®ãææ°ã®ãªãã¸ã§ã³ã§ããã¨ãããããªä½æ¥ãçºçãããã¨ã¯é¿ãããããã§ãã git ã®ãªã¢ã¼ããªãã¸ããªããå¥ã®ãµã¼ãã«ããã¯ã¢ãããä½æããã®ã¯ãhooks ãå©ç¨ãããã¨ã§ç°¡åã«è¨å®ã§ãã¾ããä¾ãã°ã対象ã¨ãªããªãã¸ããªã® post-receive ã§ä¸è¨ã®ãããªã³ãã³ããè¨å®ãã¦ããã¨ã§ãã¾ãã ããã¯ã¢ããå ã®ãµã¼ã:ãã£ã¬ã¯ããªã¯ targethost.example.jp:/var/lib/git ããã¯ã¢ããã®ããã® SSH æ¥ç¶ã§å©ç¨ããã¦ã¼ã¶ã¯ syncuser gitosis ã¦ã¼ã¶ã¯ syncuser 権é㧠git ã³ãã³ããå©ç¨åºæ¥ãããã« visudo ãè¨å® #!/bin/sh ##### # hooks/post-
The entire Pro Git book, written by Scott Chacon and Ben Straub and published by Apress, is available here. All content is licensed under the Creative Commons Attribution Non Commercial Share Alike 3.0 license. Print versions of the book are available on Amazon.com. The version found here has been updated with corrections and additions from hundreds of contributors. If you see an error or have a s
以åã®ã¨ã³ããªã§ã¯ãæçµçã«ããã¹ãç°å¢ããã³æ¬çªç°å¢ã§ git pull ãããã¨ã«ãã£ã¦ããããããæ´æ°ãã¦ãã¾ãã ããããgit ã«ã¯ãpushçãå®è¡ãããã¨ããã®å¾ã«èªåå®è¡ãã¦ãããããã¯ã¡ã«ããºã ãç¨æããã¦ãã¾ãã ãããå©ç¨ããã°ããã¡ãã¡bareãªãã¸ããªã«pushå¾ãæåã§git pullãããã¨ãªããèªåçã«è¡ãªããããã¨ãã§ãã¾ãã ä¸æºåï¼ãã¹ãç¨ã¨æ¬çªç¨ã§branchãåããï¼ ããã¯å¿ ãããåãããã«ããå¿ è¦ã¯ããã¾ããããç§ã®å ´åã¯ããã¹ãç°å¢ç¨ã¨æ¬çªç°å¢ç¨ã§ãããããbranchãåãããã¨ã«ãã¦ãã¾ãã æ¬çªç°å¢ç¨ã masterãã©ã³ãããã¹ãç°å¢ç¨ã developãã©ã³ãã¨ãã¾ãã ã¾ãã¯ããã©ã³ããä½ãã¾ãããã #localhost # ç¾å¨ã®ãã©ã³ãã確èªãã $ git branch -l * master $ git check
ãããã®VPS(v3) 2GB ãã©ã³ã¸ã®ç°å¢æ§ç¯ã¡ã¢ 11ãä»å㯠Git é¢é£ã®ç¶ããGitolite 㨠GitHub ã® push ãããã¯ããæ¹æ³ãªã©ã«ã¤ãã¦æ¸ãã Gitolite ã¸ã® push ãããã¯ãã åå Gitolite ãã»ããã¢ãããã¦ãªãã¸ããªã Redmine ã¸è¡¨ç¤ºããã¨ããã¾ã§æ¸ãããããããã®ã¾ã¾ã§ã¯ Gitolite ã® push ããã©ã¼ãªã³ã°ããããªãã¸ããªã«åæ ãããå 容ã¯å¤ãã¾ã¾ã¨ãªãããã®åé¡ã¸ã®å¯¾å¦æ¹æ³ã¯ 2 éãããã ãã©ã¼ãªã³ã°ããããªãã¸ããªä¸ã§ git fetch ãå®æå®è¡ Gitolite ä¸ã§ push ãæ¤ç¥ãã¦ããã©ã¼ãªã³ã°å ãªãã¸ããªã«å¯¾ã㦠git push --mirror ãå®è¡ æ¹æ³ 1 ãªã crontab ãå©ç¨ãããã¨ã«ãªãã ããããã¨ãã° 10 åééããã㧠git fetch ããããªã©ãããã
Gitããã¯ããã¤ãã®ã¿ã¤ãã³ã°ã§å¥½ããªå¦çãããã¯ã§ããè³¢ãåã§ãã $GIT_DIR/hooksé ä¸ã«ã¿ã¤ãã³ã°ãã¨ã®ã¹ã¯ãªãããç¨æããã¦ãã¦ããããæ¸ãæãããã¨ã§ä»»æã®å¦çãè¡ããããã¨ãåºæ¥ã¾ã. ã¿ã¤ãã³ã°ãªã©ã®è©³ãã説æã¯man githooksã«æ¸ããã¦ãã¾ããï¼æåã«ãããè¦ã¦ããã°åã®æ°æéã¯å¤±ãããªãã£ãã®ã«ï¼ ä»åããããã£ãã®ã¯ããã¼ã«ã«ã§Webãµã¤ããããããã¾ããã¦ãæ°ã«å ¥ã£ããã³ããããã¦ãªã¢ã¼ãã«pushãããããã¨èªåçã«å ¬éç¨ã®ãã£ã¬ã¯ããªã§pullããã¨ãããã®ã§ãã ãã£ããã¨ã¯ããªã¢ã¼ãå´ã§ $ cat path/to/repos/hooks/post-receive #!/bin/sh (cd /path/to/site/directory; git --git-dir=.git pull) $ chmod +x path/to/repos/
ããããã®ã¯ããããªãã¨ã ãã¼ã«ã« PCãfooã㧠HTML ãã¡ã¤ã«ãç·¨éãã¦ã ã³ã¼ããæ¸ãçµããã®ã§ããµã¼ãã¼ãbarãã®ä¸ã«ããéä¸ç®¡çãªãã¸ããªã¼ã¸ push èªåã§ãµã¼ãã¼ãbarãå ã®å ¬éç¨ãã£ã¬ã¯ããªã¼ã«æ å ±ãåæ ããã 2. ãã 3. ã®éã®ã¿ã¤ã ãã¹ããã»ã¨ãã© 0 ã«ãããã ããããæãgit ã® hook ã使ãã ãªãã¸ããªã¼ã®ç¨æ ãªãã¸ããªã¼ã®æ§æããå®éã®ã³ãã³ããä¾ã«æ¸ãã¦ããã ã¾ãã¯ãã¼ã«ã« PCãfooãä¸ã« hoge-html ããã¸ã§ã¯ããä½æã you@foo ~% mkdir hoge-html you@foo ~% cd hoge-html you@foo hoge-html% git init you@foo hoge-html% touch main.html you@foo hoge-html% git add main.ht
.gitignore ã¨ãã¦ãWordPress ã®ã«ã¼ãã«ä»¥ä¸ãä½æ wp-content/uploads/ wp-content/upgrade/ GitHub ã«ç½®ãã¦ãã WordPress ç¨ã® .gitignore ãæµç¨ãã¦ãå¯ https://github.com/github/gitignore/blob/master/Wordpress.gitignore # ãã£ã¡ã¯ãã³ã¢ã½ã¼ã¹ããã¹ã¦å¯¾è±¡å¤ã«ãã¦ããã ( @miya0001 thx ) git ãªãã¸ããªã®ä½æã¨ãã¡ã¼ã¹ãã³ããã $ cd /path/to/wordpress $ git init $ git add .gitignore $ touch wp-content/uploads/.gitignore; git add -f wp-content/uploads/.gitignore $ touch
Wordpressãã®ãã®ãã¤ã³ã¹ãã¼ã«ãããã©ã°ã¤ã³ã¯é »ç¹ã«ã¢ãããã¼ããããã®ã§ãå²ã¨ã¾ãã«å¯¾å¿ããªããã°ãªããªããã¾ããã«ã¹ã¿ãã¤ãºããç®æãå¢ãã¦æ¥ãã¨ãã©ããå¤ãããï¼ããããªããªã£ã¦ããã®ã§ããã¼ã¸ã§ã³ç®¡çã®ä»çµã¿ãå ¥ãã¦ã³ã¼ãã管çããã»ããè¯ãã ãã¼ã¸ã§ã³ç®¡çã®ä¸ã§ã¯Gitãä¸çªç°¡åãããªã®ã§ããããã調ã¹ã¦ã¿ãããæå¤ã¨Wordpressã®ç®¡çã«ä½¿ã£ã¦ããæ å ±ãå°ãªãã£ãããã£ã¦ã¿ãã¨ç°¡åã«ã§ããä¸ãã客ããåãã«ã¹ãã¼ã¸ã³ã°ç°å¢ãæä¾ããã®ã«ä¾¿å©ãªã®ã§ãèªåã®ç°å¢ã®ä½ãæ¹ãã¾ã¨ãã¦ã¿ãã èªåã®éçºç°å¢ãå³ã«ããã¨ãããªæãï¼ Macbookã®ä¸ã§èµ°ããã¦ããVMWareã«Ubuntuã§éçºç°å¢ããã¦ãããã§Wordpressã®ã«ã¹ã¿ãã¤ãºããã¦ãããã«ã¹ã¿ãã¤ãºã®å¯¾è±¡ã¨ãªãWordpressã®ã³ã¼ãã¯Coreseverä¸ã«ããGitã®ãªã¢ã¼ãã¬ãã¸ããªã«æ ¼ç´ãããU
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}