ã¾ã¨ã $ git diff --no-prefix HEAD~ > thisis.patch $ patch --dry-run -p0 < thisis.patch $ patch -p0 < thisis.patch git diffã«--no-prefixãã¤ããäºã§ãæ®éã®patchã§å½ã¦ãããããããã¡ã¤ã«ãåºåã§ãã¾ãããã®ä¾ã§ã¯HEADã®1åå*1ããHEAD*2ã¾ã§ã®ãããã§ãã æ®éã®patchã³ãã³ãã®ã»ãã®ç¥èããã¾ãç¡ãã¦-p0ããã¾ãã¡ããåãããªããã§ãããgit diff --no-prefixã§ä½æããããããã¡ã¤ã«ãå½ã¦ãã«ã¯å¿ è¦ã¿ããã§ãã--dry-runã¯ãå®éã«ã¯å½ã¦ãªããã©å½ã¦ãå ´åã®çµæãåºåãã¾ãããªã®ã§ãã¾ãã¯--dry-runã§ç¢ºèªãã¦ãåé¡ãç¡ããã°å®éã«ããããå½ã¦ã¾ãã ã¨ã³ããªã¼æ¸ããå¾ã«æãã¦ããã£ãè£è¶³ patch -p1ã®
{{#tags}}- {{label}}
{{/tags}}