{"published":"2015-01-06 23:12:26","provider_url":"https://hatena.blog","blog_title":"Bye Bye Moore","height":"190","image_url":null,"width":"100%","blog_url":"https://shuzo-kino.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2015%2F01%2F06%2F231226\" title=\"git diff\u3092patch\u3067\u6271\u3048\u308b\u5f62\u5f0f\u306b\u3059\u308b - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Git"],"author_name":"shuzo_kino","provider_name":"Hatena Blog","type":"rich","version":"1.0","title":"git diff\u3092patch\u3067\u6271\u3048\u308b\u5f62\u5f0f\u306b\u3059\u308b","url":"https://shuzo-kino.hateblo.jp/entry/2015/01/06/231226","description":"Git diff \u3082patch\u30b3\u30de\u30f3\u30c9\u3067\u6271\u3046\u5f62\u5f0f\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002\u901a\u5e38\u306egit diff\u3068\u4f75\u305b\u3066\u3001\"\u2013no-prefix\"\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002 \u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f \u201d--no-prefix\u201d Do not show any source or destination prefix. \u3068\u3042\u308b\u3088\u3046\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u3088\u3046\u306a\u60c5\u5831\u3092\u8868\u793a\u3057\u306a\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002 $ git diff --no-prefix > patchfile.diff\u30d1\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b\u306b\u306f\u3001p0\u30aa\u30d7\u30b7\u30e7\u30f3\uff08\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5dee\u304c\u306a\u3044\uff09\u3092\u3064\u3051\u3066 $ patch -p0 < patchfile.diff\u3068\u3084\u3063\u3066\u3042\u3052\u308c\u3070\u826f\u3044\u3067\u3059\u3002 \u53c2\u8003\u3082\u3068\u2026"}