{"type":"rich","author_url":"https://blog.hatena.ne.jp/shigemk2/","published":"2019-04-30 18:54:59","url":"https://www.shigemk2.com/entry/2019/04/30/185459","image_url":null,"height":"190","blog_url":"https://www.shigemk2.com/","categories":["Git"],"width":"100%","provider_url":"https://hatena.blog","blog_title":"by shigemk2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2019%2F04%2F30%2F185459\" title=\"memo git diff patch - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"memo git diff patch","provider_name":"Hatena Blog","author_name":"shigemk2","description":"memo git diff patch diff\u3068patch\u3092\u601d\u3044\u51fa\u3059\u306e\u304c\u3081\u3093\u3069\u304f\u3055\u3044 $ git diff master feature_bk > test.patch $ git checkout -b feature origin/master $ patch -p1 < test.patch","version":"1.0"}