Dropbox使ãã¨ç¡æã§Gitã®ãã©ã¤ãã¼ããªãã¸ããªä½ãããããªãã§ããï¼
GitHubã¨ãããã®ããã
Git使ã£ã¦ã人ãªãç¥ã£ã¦ãã ãããã©ãGitHubã¨ãããµã¼ãã¹ããããããã¯Wikipediaã«ããã¨
GitHubï¼ã®ããããï¼ã¯ã½ããã¦ã§ã¢éçºããã¸ã§ã¯ãã®ããã®å ±æã¦ã§ããµã¼ãã¹ã§ãããGitãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã使ç¨ããã Ruby on Railsããã³Erlangã§è¨è¿°ããã¦ãããGitHub社ã«ãã£ã¦ä¿å®ããã¦ããã 主ãªéçºè ã¯Chris WanstrathãPJ HyettãTom Preston-Wernerã§ããã GitHubåç¨ãã©ã³ããã³ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãåãã®ç¡æã¢ã«ã¦ã³ããæä¾ãã¦ããã 2009å¹´ã®ã¦ã¼ã¶ã¼èª¿æ»ã«ããã¨ãGitHubã¯æãããã¥ã©ã¼ãªGitãã¹ãã£ã³ã°ãµã¤ãã¨ãªã£ã[3]ã
ã¨ãããµã¼ãã¹ãã¾ãããã°ç¡æã§ãªãã¸ããªãä½ãããµã¼ãã¹ã§ããã
ç¡æãªãã§ãããç¡æã§å©ç¨ããåã«ã¯ãªãã¸ããªããã¹ã¦ãããªãã¯ãã¤ã¾ã誰ã§ãã½ã¼ã¹ãè¦ããããã©ã¼ã¯ã§ãã¦ãã¾ãããã§ããã§ãã仲éå ã ãã®ãªãã¸ããªä½ãããï¼ãã¨ããèªåã ãã®ãªãã¸ããªä½ãããï¼ï¼ãã£ã¦ãªãã¨ãã©ã¤ãã¼ããªãªãã¸ããªãã»ãããªããããªã®ã§ããããã©ã¤ãã¼ããªãªãã¸ããªã¯ææãµã¼ãã¹ã§ã®ãæä¾ã¨ãªã£ã¦ããã®ã§ããã便å©ãªç¡æãµã¼ãã¹ãããã¡ãã£ã¨ä¾¿å©ã«ä½¿ããã¨æã£ãããéãéãéâ¦ä¸ç¥è¾ãä¸ã®ä¸ã§ãã
ã§ãå¥ã«å人ã§éçºããåã«ã¯Gitã®ãªãã¸ããªãªãã¦ãã¼ã«ã«ã®ãã·ã³ã«ã ãããã°ããã®ã§ãããããã£ã±ããªã¢ã¼ããªãã¸ããªããªãã¨ä¸å®ã ãï¼ãã£ã¦ãããã¨ãããã¾ããããåã®ãã·ã³ã¯ããããããï¼ï¼åã¯ãã ããªããããã¶ã£å£ãã¦ããã®ã§ããã¼ã«ã«ã ãããä¸å®ã§ãã
Dropbox使ãã°ãããï¼ï¼
ããã§éããã®ãããDropboxã«ãªãã¸ããªä½ãã°ã©ã£ããã§ãåæã§ãããããï¼ãã¨ãããã¨ãDropboxã¯sshã§ç¹ãã¨ããããªãµã¼ãã¹ã¯ãªãã®ã§ç´æ¥pushã¨ãã¯ã§ããªãã®ã§ãããDropboxã«é ãã¦ããã¡ã¤ã«ã常ã«ãã¼ã«ã«ã¨åæãããã¨ãã§ãã¾ããã¤ã¾ãããã¼ã«ã«ã®Dropboxãã©ã«ãã«ãªãã¸ããªä½ã£ã¦ããã«pushããã°ãDropboxã«åãã¢ã«ã¦ã³ãã§ãã°ã¤ã³ãã¦ããã¹ã¦ã®ãã·ã³ã§ãªãã¸ããªã®ä¸èº«ãåæããã¦ãçµå±Dropboxã«ãªã¢ã¼ããªãã¸ããªãããã®ã¨ä¸ç·ãããªãã§ããï¼ï¼ãã£ãã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ï¼ï¼ï¼ï¼
ã§ãã©ãããã®ï¼
ã¨ããããã§ã¡ãã£ã¨ã°ã°ãã¦ï¼ã¤ãããæ¾ãèªã¿ãï¼â»ï¼ã¤ã§ããï¼
å人ã§ãã©ã¤ãã¼ããªãã¸ããªã¨ãã¦ä½¿ãåã«ã¯å ã«æ¸ããããã«ãã¼ã«ã«ã®Dropboxãã©ã«ãã«ãªãã¸ããªãä½ãã ããªã®ã§ãããè¤æ°äººã§å ±æããããªãã¸ããªã§ããã°ã
Dropboxã«ã¯æå®ãããã£ã¬ã¯ããªãã¦ã¼ã¶ã¼å士ã§å ±æããæ©è½ãããã¾ãã
ä¸è¨ã®ä¾ãªãã°ãReposããããã¯ãRepos/myapp.gitããå ±æãããã¨ã§ããªãã¸ããªã®è¤æ°äººã«ããå©ç¨ãå¯è½ã¨ãªãã¾ãã
便å©ã§ããï¼
ã¨ããæãã§ä½¿ãããã§ããããã§ä»ã®äººã«èªåã®Dropboxã¢ã«ã¦ã³ãã§ãã°ã¤ã³ãããã¨ãã¢ããªãã¨ããªãã¦æ¸ã¿ã¾ããã
ä¸äººã§ä½¿ããã©ã¤ãã¼ããªãã¸ããªã ã¨ãããªæãã
ä»ã¾ã§Dropbox + gitã¨ããã°ãDropboxã«bareãªãã¸ããªãç½®ãã¦ããããcloneããã¨ããsvnæ代ã®ä¼çµ±ãå¼ããã£ãã¹ã¿ã¤ã«ã主æµã§ãããã--separate-git-dirãªãã·ã§ã³ã®ãããã§ãã£ã¨ã¢ãã³ãã¤æ軽ã«å®ç¾ã§ãã¾ãã
ãã®ä¸æã«ããã¨ãä»ã¾ã§è¦ã¦ããããæ¹ã¯ãªãã ãå¤èãåæ代çãªããæ¹ã ããã§ããåèªèº«gitããã¾ãããããã£ã¦ãªãã®ã§ãä½ã®ãã¨ããããããã¾ãããããã¾ããã
ã¨ã¾ããããªæãã§ãDropbox使ãã°ç¡æã§ãã©ã¤ãã¼ããªãã¸ããªãä½ãããï¼ãã¨ããã話ã§ããã
ãã¾ã
Gitã®ãã¬ã¤ãªãã©ã³ãã®åãæ¹
見えないチカラ: A successful Git branching model を翻訳しました
ããã¾ãèªãã§ãªããã©ããªããªãããã«ãªãã¾ãããã®åã«Gitã®æ¬èªãã§ç解ãããâ¦
ããã$ git reset --hard HEAD^ããã¦æ»ã«ãããã®ã§ãgitã®åºæ¬çãªã³ãã³ãã¨ããèªåã®ç解ã®ããã«ã¾ã¨ãããã¨æãã¾ãããã®ãã¡ã