Gitã§ã³ããããããç´ãæ¹æ³ (ãããç·¨)
ããããå°ã£ãã
ããã³ãããã¯UTF-8ãã¾ãããã³ãããã¯EUC-JPã§ãã°ãæ¸ããªãã¦â¦ã
ä¿®æ£ãããã«ã
$ git rebase -i
ã§ã¯æååãã¦ãã¦ã¾ã£ã¦ãã¾ããããªãã
ã¡ãã£ã¨å¤§ãããããããªããã©ã次ã®æ¹æ³ã§ä¿®æ£ããã
æ¢åã³ãããã®ãããã«æ¸ãåºã
第1å¼æ°ã«ã¯ããããä½æãå§ããã³ããããæå®ããã
ä»åã¯ãã¹ã¦æ¸ãåºãã®ã§masterãæå®ã
$ git format-patch master
ã³ãã³ããå®è¡ããã¨ãã®å ´ã«ããããä½æãããã¨ããã®ã§è¦æ³¨æã
patchesãªã©é©å½ãªãã£ã¬ã¯ããªã«ç§»åãã¦ããã¹ãã
åé¡ã®ããããä¿®æ£
ãã¦ã以ä¸ã®ãããªããããã¡ã¤ã«ãã§ããã
$ ls -1 0001-FIXME-xxx-xxx-xxx.patch 0002-FIXME-xxx-xxx-xxx.patch 0003-FIXME-xxx-xxx-xxx.patch 0004-FIXME-xxx-xxx-xxx.patch 0005-FIXME-xxx-xxx-xxx.patch 0006-FIXME-xxx-xxx-xxx.patch ã ç¥ ã
ä¸èº«ã¯ã¡ã¼ã«ã¨åãæ¸å¼ã§ãã³ããããã°ã¨ãã¡ã¤ã«ã®å·®åãå«ã¾ããã
ããã§ã¯ãåé¡ã®ããã³ããããã°ãä¿®æ£ããã
æ°ãããã©ã³ãã«ããããé©ç¨
ã¾ãã¯ããããé©ç¨ããæ°ãããã©ã³ããä½æããã§ãã¯ã¢ã¦ãã
masterããã®ããããªã®ã§masterãå
ã«ããã
$ git branch new_branch master $ git checkout new_branch
æå¾ã«amã³ãã³ãã§ããããé©ç¨ã
$ git am *.patch
ããã¾ãâª