Git
dev-xxxãã©ã³ãã«ããã¨ãã«ãmasterãã©ã³ãã«ç§»åããªãã¾ã¾ã§dev-xxxãã©ã³ããmasterã«mergeã§ããã http://hibari.2ch.net/test/read.cgi/tech/1284467898/810 ä½ã¬ãã«æä½ã«ãã£ã¦ãã¯ã¼ãã³ã°ãã£ã¬ã¯ããªãä¸åç¡è¦ãã¦ä»»æã®ã¤ã³ãã¯ã¹ã«å¯¾ãã¦â¦
ã³ã¼ããæ¸ã èµ·ç¹ãã©ãã«ããã ãã°ä¿®æ£ã®å ´å maintï¼ç¡ãå ´åã¯masterï¼ æ°æ©è½ã®å ´å masterï¼puã«ä¾åããå ´åã¯puï¼ ã³ããããä½ã Documentation/SubmittingPatches ãèªãã ãããã¯è«ççãªåä½ã«åããã git diff --check ã§ç¡é§ãªç©ºç½ãç¡ãâ¦
Gitã®ã½ã¼ã¹ã³ã¼ããè¦ã¦ãããã©ãããããªãã¨ãæ¸ãã¦ããï½ï½ï½ é¢ç½ããªã¨æã£ã¦ããããæ¢ãã¦ããã¡ã«ãåæã³ãããã«è¡ãçããã commit e83c5163316f89bfbde7d9ab23ca2e25604af290 Author: Linus Torvalds Date: Thu Apr 7 15:13:13 2005 -0700 Iâ¦
ç´åã®ãã¼ã¸ãåãæ¶ãå ´åã¯ã à git reset --hard HEAD^ã§ã¯ãªãã â git reset --hard ORIG_HEADã¨ããªãã¨å±ãªããã¨ãã話ãããã¼ã¸å¾ã«git reset --hard HEAD^ã§åãæ¶ããã¯å»å¹´ã®æ¥è¨ã§ããã£ãã使ã£ã¦ããã©ããã¾ãã¾ä¸æããã£ã¦ããããããâ¦
ã¨ãã©ãééãã®ã§ã大éæã«è¨ãã¨ãgit rebase ã¯ãgit reset + git cherry-pick à nå ãèªååãããã®ãã¨èããããï¼é©ç¨ããã³ããã群ãå°ãªããã°ãæåã§reset & cherry-pickãã¦ãè¯ãããããããããã¨ããããããªãï¼ å¥½ããªå ´æã«resetãâ¦
git-rerereã£ã¦ãªããã¬ã¬ã¬ã®ããããã¿ããã§ãã(Reuse recorded resolution of conflicted merges ã ãããª)ãåããããªè¡çªãä½åº¦ãèµ·ããç¶æ³ã§ä½¿ãã¨ã¨ã£ã¦ã便å©ãªããã§ã調ã¹ã¤ã¤ãã¡ã¢ãLinusãè¨ã£ã¦ãããç¡é§ãªãã¼ã¸ã³ãããããã¦ããå®ç¾â¦
æ®éã«git-svnããããã¨ããã¨ãæ´»çºãªããã¸ã§ã¯ãã ã¨æ¢ã«æ°å以ä¸ã®å±¥æ´ããã£ãããªãããã¦ãå ¨é¨ãã§ããããã®ã«ã¢ãã¿ããã«æéããããã¾ãããã¨ãã£ã¨svnã®ãã¹ãããè² è·ããã«ãã¦æ¶ç®ã ã¨æãã¾ããããã§ãgithubãããããgit-svnæ¸ã¿ã®giâ¦
http://support.github.com/discussions/feature-requests/185-download-diff-buttonã³ãããã®URLã«.diffãä»ããã¨ãåç´æ解ã ã£ãã è¿½è¨ URLã«.diffãä»ããå ´åã«åå¾ã§ããdiffã¯æ¹è¡ã³ã¼ãããªãªã¸ãã«ã¨éã£ã¦ããããã«ããã®ã¾ã¾patchã«é£ãããâ¦
githubãè¦ã¦ããä¹ ã ã«ãµã¼ãã¨ã©ã¼ç»é¢ã表示ããã¦ãã¾ããããªã®ãåºã¦ããã以åãããã³ãã³ãªã®ãåºã¦ãããªãã¨æã£ã¦ãããã ãã©ãããå æ¸ãããªããªãã ï¼ã¨æã£ã¦ãã°ã°ã£ã¦ã¿ãããããããã©ãããµã¤ã¢ã³ã»ãªã¯ã¹ãªã¼ã¨ãã人ã®ãã¶ã¤ã³ããâ¦
ãã¤ãã¾ã«ãGitã®ãµã¤ãããªãã¥ã¼ã¢ã«ãã¦ãã http://git.or.cz 㯠http://git-scm.com/ ã«é£ã°ãããããã«ããã§ãä½ããæ°ãããã¹ã³ãããã£ã©ã®ãããªã®ãå± ããã ãã©ãã©ããããããã¼ã¢ããã¨ããã®ã«ãã£ãããããããã¼ã¢ããã¦ä½ãªãã ãå ¨â¦
ã©ãããã¯ãªã¹ãã¹ãã¬ã¼ã³ããªãªã¼ã¹ã ã£ããããã http://repo.or.cz/w/git.git?a=commit;h=8104ebfe8276657ee803cca7eb8665a78cf3ef83ãã©http://git.or.cz/ã«ã¾ã æ¥ã¦ãªãã®ã¯ä½ã§ãªãã ããã¨ãããããã«ãã $ git fetch origin $ git checkout v1.â¦