{"categories":["Git"],"width":"100%","url":"https://www.shigemk2.com/entry/20120629/1340959223","blog_url":"https://www.shigemk2.com/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20120629%2F1340959223\" title=\"git add -p - 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>","author_name":"shigemk2","type":"rich","height":"190","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/shigemk2/","title":"git add -p","provider_url":"https://hatena.blog","published":"2012-06-29 17:40:23","description":"git add \u3068 git rebase \u306e\u3061\u3087\u3063\u3068\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9(add -p, rebase -i) - \u30a2\u30b8\u30e3\u30a4\u30ebSE\u3092\u76ee\u6307\u3059\u30d6\u30ed\u30b0 hunk git\u3067\u30b3\u30df\u30c3\u30c8\u3057\u305f\u3068\u304d\u3001\u901a\u5e38\u306f\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306b\u307e\u3068\u3081\u3066\u30b3\u30df\u30c3\u30c8\u3059\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u304c\u3001 hunk\u3092\u4f7f\u3063\u3066\u5909\u66f4\u7b87\u6240\u3054\u3068\u306b\u30b3\u30df\u30c3\u30c8\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002 git add -p git add -p \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u5909\u66f4\u3057\u305f\u30b3\u30fc\u30c9\u306e\u4e00\u90e8\u3060\u3051\u3092Staged\u306b\u4e0a\u3052\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\u307e\u305a\u3053\u3093\u306a\u611f\u3058\u306e\u30b3\u30fc\u30c9(hoge.php)\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3057\u3087\u3046\u3002 <?php function hoge($a) { $a = $a + 5; return $a; } var_d\u2026","blog_title":"by shigemk2"}