{"published":"2013-12-19 18:54:39","title":"Github\u306ePull Request\u3092\u30ed\u30fc\u30ab\u30eb\u306bfetch\u3059\u308b","version":"1.0","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgin0606.hatenablog.com%2Fentry%2F2013%2F12%2F19%2F185439\" title=\"Github\u306ePull Request\u3092\u30ed\u30fc\u30ab\u30eb\u306bfetch\u3059\u308b - \u9280\u306e\u4eba\u306e\u30e1\u30e2\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","url":"https://gin0606.hatenablog.com/entry/2013/12/19/185439","width":"100%","description":"Checkout github pull requests locally \u3053\u308c\u3092\u3084\u308b\u3060\u3051\u3002 \u5185\u5bb9\u7684\u306b\u306f\u3001.git/config \u306b\u4e0b\u8a18\u306e\u4e00\u884c\u3092\u8db3\u3059\u3060\u3051 fetch = +refs/pull/*/head:refs/remotes/origin/pr/* PR\u3092fetch\u3057\u305f\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u3092upstream\u3068\u304b\u3067\u767b\u9332\u3057\u3066\u3044\u305f\u3089\u3001origin\u306b\u306a\u3063\u3066\u308b\u306e\u3092upstream\u306b\u3059\u308c\u3070\u826f\u3044\u3002 \u3042\u3068\u306fgit fetch origin\u3067PR\u304c\u30d5\u30a7\u30c3\u30c1\u3055\u308c\u3066\u3001\u305d\u308c\u3092checkout\u3059\u308b\u3060\u3051\u3002 git fetch --prune origin\u3059\u308b\u3068PR\u304cdelete\u306b\u306a\u308b\u3051\u3069\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3002","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/gin0606/","image_url":null,"categories":[],"blog_url":"https://gin0606.hatenablog.com/","type":"rich","author_name":"gin0606","blog_title":"\u9280\u306e\u4eba\u306e\u30e1\u30e2\u5e33"}