{"id":3558,"date":"2016-04-05T09:24:21","date_gmt":"2016-04-05T00:24:21","guid":{"rendered":"http:\/\/aatljapan.wpengine.com\/?p=3558"},"modified":"2016-04-05T09:24:21","modified_gmt":"2016-04-05T00:24:21","slug":"whats-new-in-git-2-8","status":"publish","type":"post","link":"https:\/\/www.atlassian.com\/ja\/blog\/whats-new-in-git-2-8","title":{"rendered":"Git 2.8 \u8a73\u7d30 : push\u3001grep\u3001rebase\u3001config \u306b\u95a2\u3059\u308b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8"},"content":{"rendered":"<p>\u65b0\u3057\u3044 <a href=\"https:\/\/git.kernel.org\/cgit\/git\/git.git\/plain\/Documentation\/RelNotes\/2.8.0.txt\">Git 2.8.0 \u304c\u30ea\u30ea\u30fc\u30b9<\/a> \u3055\u308c\u305f\u3053\u3068\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\uff01\u3053\u3053\u6570\u9031\u9593\u3067\u30ea\u30ea\u30fc\u30b9\u5019\u88dc\u7248\u304c\u9032\u884c\u3057\u3066\u3044\u308b\u9593\u306b\u3001\u79c1\u306f\u65b0\u3057\u3044\u6a5f\u80fd\u3092\u8a66\u3057\u3066\u9762\u767d\u3044\u5177\u4f53\u4f8b\u3092\u7c21\u5358\u306b\u307e\u3068\u3081\u3088\u3046\u3068\u3001\u30b3\u30df\u30c3\u30c8\u3092\u884c\u3063\u305f\u308a\u3001\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u306b\u76ee\u3092\u901a\u3057\u307e\u3057\u305f\u3002\u958b\u767a\u8005\u306e\u6642\u9593\u3092\u7bc0\u7d04\u3059\u308b\u305f\u3081\u306b\u3001\u500b\u4eba\u7684\u306b\u304a\u52e7\u3081\u3059\u308b\u8a66\u3059\u3079\u304d\u6a5f\u80fd\u306e\u9078\u629e\u80a2\u3092\u307e\u3068\u3081\u305f\u306e\u3067\u3001\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<h2 id=\"-push-d-is-a-synonym-of-push-delete-\"><tt>push --delete<\/tt> \u306e\u540c\u7fa9\u8a9e <tt>push -d<\/tt><\/h2>\n<p>\u3053\u308c\u306f\u30bf\u30a4\u30d4\u30f3\u30b0\u306e\u4e00\u8cab\u6027\u304a\u3088\u3073\u30b9\u30d4\u30fc\u30c9\u3092\u5411\u4e0a\u3059\u308b\u305f\u3081\u306b\u65b0\u305f\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\u65e2\u306b <tt>git branch -d<\/tt> \u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u3067\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u3066\u3044\u308b\u958b\u767a\u8005\u3082\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u3067 <tt>git push -d<\/tt> \u3078\u306e\u30ea\u30e2\u30fc\u30c8 \u30d6\u30e9\u30f3\u30c1\u524a\u9664\u3082\u7c21\u7565\u5316\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4f8b:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aatljapan.wpengine.com\/files\/git28-1-e1459813842598.png\" alt=\"git28-1\" width=\"600\" height=\"48\" class=\"alignnone size-full wp-image-3560\" \/><\/p>\n<h2 id=\"-git-grep-threading-and-recursive-protection\"><tt>git grep<\/tt>: \u30b9\u30ec\u30c3\u30c9\u3068\u7e70\u308a\u8fd4\u3057\u9632\u6b62<\/h2>\n<p>\u3044\u304f\u3064\u304b\u306e\u95a2\u9023\u6a5f\u80fd\u304c <tt>grep<\/tt> \u306e\u6a5f\u80fd\u306b\u7d71\u5408\u3055\u308c\u307e\u3057\u305f:<\/p>\n<ol>\n<li>\n<p>\u30ef\u30fc\u30ad\u30f3\u30b0 \u30c4\u30ea\u30fc \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u691c\u7d22\u4e2d\u306b <tt>grep<\/tt> \u3067\u4f55\u30b9\u30ec\u30c3\u30c9\u3092\u4f7f\u3046\u304b\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<tt>--num-threads<\/tt> \u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u8ffd\u52a0\u3059\u308b\u304b\u3001<tt>.gitconfig<\/tt> \u306b\u69cb\u6210\u30d5\u30e9\u30b0 <tt>grep.threads<\/tt> \u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u5e38\u306b\u305d\u306e\u8a2d\u5b9a\u3092\u9069\u7528\u3067\u304d\u307e\u3059\u3002\u4f8b:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aatljapan.wpengine.com\/files\/git28-221-e1459814710278.png\" alt=\"git28-22\" width=\"580\" height=\"29\" class=\"aligncenter size-full wp-image-3566\" \/><\/p>\n<\/li>\n<li>\n<p>git \u4ee5\u5916\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3067 <tt>git grep<\/tt> \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5fc5\u305a\u3057\u3082\u610f\u56f3\u3055\u308c\u3066\u3044\u306a\u3044\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u691c\u7d22\u306e\u5b9f\u884c\u304c\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3053\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001git \u30ea\u30dd\u30b8\u30c8\u30ea\u4ee5\u5916\u3067 <tt>grep<\/tt> \u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001<tt>--no-index<\/tt> \u30d5\u30e9\u30b0\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u5b89\u5168\u88c5\u7f6e\u306f <tt>grep.fallbackToNoIndex<\/tt> \u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30e9\u30b0\u3067\u7121\u52b9\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"-pull-rebase-supports-interactive-mode\"><tt>pull --rebase<\/tt> \u304c\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6 \u30e2\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8<\/h2>\n<p><tt>git pull --rebase<\/tt> \u306f\u3001<tt>git pull --rebase=interactive<\/tt> \u3068\u3059\u308b\u3053\u3068\u3067\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u30b3\u30df\u30c3\u30c8\u3092\u7d20\u65e9\u304f squash \u3059\u308b\u3068\u304d\u3084\u3001\u30d7\u30eb\u306e\u969b\u306b\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u7de8\u96c6\u3059\u308b\u3068\u304d\u306e\u305f\u3081\u306b\u3001<tt>pull rebase<\/tt> \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u8ffd\u52a0\u3055\u308c\u305f\u8208\u5473\u6df1\u3044\u6a5f\u80fd\u3067\u3059\u3002\u901a\u5e38\u306e <a href=\"https:\/\/ja.atlassian.com\/git\/tutorials\/merging-vs-rebasing\/the-golden-rule-of-rebasing\">rebase \u306e<strong>\u8b66\u544a<\/strong>\u304c\u9069\u7528\u3055\u308c\u307e\u3059<\/a>\u3002<\/p>\n<h2 id=\"ask-git-config-anything-\"><tt>git config<\/tt> \u306b\u4f55\u3067\u3082\u805e\u3053\u3046 \ud83d\ude09<\/h2>\n<p>\u901a\u5e38\u5165\u529b\u304b\u3089\u8aad\u307f\u8fbc\u307e\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304b\u3001\u30d6\u30ed\u30d6 (blob) \u304b\u3001\u3042\u308b\u3044\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u76f4\u63a5\u8aad\u307f\u8fbc\u307e\u308c\u305f\u306e\u304b\u3001git config \u306f\u5024\u304c\u8a2d\u5b9a\u3055\u308c\u305f\u5834\u6240\u3092\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u8cea\u554f\u3092\u3057\u307e\u3059\uff1a\u300c\u79c1\u306f <tt>st<\/tt> (\u30b9\u30c6\u30fc\u30bf\u30b9) \u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u3069\u3053\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u304b?\u300d\u3059\u308b\u3068\u4eca\u306e <tt>git config<\/tt> \u304b\u3089\u306f\u6b21\u306e\u3088\u3046\u306a\u7b54\u3048\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aatljapan.wpengine.com\/files\/git28-3-e1459814499775.png\" alt=\"git28-3\" width=\"600\" height=\"56\" class=\"aligncenter size-full wp-image-3565\" \/><\/p>\n<h2 id=\"other-sparse-tidbits\">\u305d\u306e\u4ed6\u306e\u5c0f\u3055\u306a\u6539\u5584\u70b9<\/h2>\n<ul>\n<li><tt>git blame<\/tt> \u304c\u9577\u671f\u9593\u5b9f\u884c\u3055\u308c\u308b\u3068\u304d\u306b\u76ee\u306b\u697d\u3057\u3044\u9032\u884c\u72b6\u6cc1\u30d0\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/li>\n<li><tt>&lt;branch&gt;^{\/!-&lt;pattern&gt;}<\/tt> \u3068\u3044\u3046\u5f62\u306e\u65b0\u305f\u306a\u8868\u8a18\u6cd5\u304c\u5229\u7528\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u958b\u767a\u8005\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f <tt>&lt;pattern&gt;<\/tt> \u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\u304c <tt>&lt;branch&gt;<\/tt> \u304b\u3089\u30ea\u30fc\u30c1\u3067\u304d\u308b\u30b3\u30df\u30c3\u30c8\u3092\u53c2\u7167\u3067\u304d\u307e\u3059\u3002\n<\/li>\n<li><tt>git fetch<\/tt> \u306f <tt>ipv4<\/tt> (\u307e\u305f\u306f <tt>ipv6<\/tt>) \u306e\u307f\u3092\u4f7f\u7528\u3057\u3066\u69cb\u6210\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u305e\u308c <tt>git fetch -4<\/tt> \u3084 <tt>git fetch -6<\/tt> \u3068\u3057\u3066\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/li>\n<li>Command \u30d1\u30bf\u30fc\u30f3 <tt>git worktree add -B &lt;branchname&gt;<\/tt> \u304c\u60f3\u5b9a\u3055\u308c\u3066\u3044\u305f\u901a\u308a\u306b\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u4fee\u6b63\u3055\u308c\u307e\u3057\u305f\u3002\n<\/li>\n<\/ul>\n<h2 id=\"next-steps\">\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3078<\/h2>\n<p>\u4e0a\u8a18\u306e\u30e1\u30e2\u306f\u5358\u306b 1 \u3064\u3092\u9078\u3093\u3060\u3060\u3051\u3067\u3059\u3002\u3053\u306e\u30ea\u30ea\u30fc\u30b9\u306b\u306f\u3082\u3063\u3068\u591a\u304f\u306e\u6539\u5584\u70b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\uff01\u305d\u306e\u4ed6\u306e\u8ffd\u52a0\u6a5f\u80fd\u306b\u3064\u3044\u3066\u306f\u3001\u672c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u57fa\u3068\u306a\u3063\u305f<a href=\"https:\/\/git.kernel.org\/cgit\/git\/git.git\/plain\/Documentation\/RelNotes\/2.8.0.txt\">\u5b8c\u5168\u7248\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u3082\u3057\u5076\u7136\u306b\u3082\u6765\u9031\u30cb\u30e5\u30fc\u30e8\u30fc\u30af\u306b\u3044\u308b\u5834\u5408\u306f\u662f\u975e <a href=\"http:\/\/git-merge.com\/\">Git Merge<\/a> \u306b\u6765\u3066 git \u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u53c2\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u3053\u308c\u304b\u3089\u5f15\u304d\u7d9a\u304d\u79c1\u3068\u9023\u7d61\u3092\u53d6\u3063\u305f\u308a\u3001git \u3092\u306f\u3058\u3081\u3068\u3057\u305f\u6280\u8853\u7684\u306a\u8a66\u307f\u306b\u3064\u3044\u3066\u306e\u6700\u65b0\u60c5\u5831\u3092\u304a\u805e\u304d\u306b\u306a\u308a\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/twitter.com\/durdn\" class=\"twitter-follow-button\" data-show-count=\"false\" data-size=\"large\" data-dnt=\"true\">@durdn \u3092\u30d5\u30a9\u30ed\u30fc<\/a>\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<p><\/br><br \/>\n<small><br \/>\n*\u672c\u30d6\u30ed\u30b0\u306f Atlassian Developers \u306e\u7ffb\u8a33\u3067\u3059\u3002\u672c\u6587\u4e2d\u306e\u65e5\u6642\u306a\u3069\u306f\u6295\u7a3f\u5f53\u6642\u306e\u3082\u306e\u3067\u3059\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<br \/>\n*\u539f\u6587 : 2016 \u5e74 3 \u6708 31 \u65e5\u6295\u7a3f \"<a href=\"https:\/\/developer.atlassian.com\/blog\/2016\/03\/whats-new-in-git-2.8\/\" target=\"_blank\">More on Git 2.8: push, grep, rebase, config neat things<\/a>\"<br \/>\n<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u3057\u3044 Git 2.8.0 \u304c\u30ea\u30ea\u30fc\u30b9 \u3055\u308c\u305f\u3053\u3068\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\uff01\u3053\u3053\u6570\u9031\u9593\u3067\u30ea\u30ea\u30fc\u30b9\u5019\u88dc\u7248\u304c\u9032\u884c\u3057\u3066\u3044\u308b\u9593\u306b\u3001\u79c1\u306f\u65b0\u3057\u3044\u6a5f\u80fd\u3092\u8a66\u3057\u3066\u9762\u767d\u3044\u5177\u4f53\u4f8b\u3092\u7c21\u5358\u306b\u307e\u3068\u3081\u3088\u3046\u3068\u3001\u30b3\u30df\u30c3\u30c8\u3092\u884c&hellip;<\/p>\n","protected":false},"author":275,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"bitbucket_subtitle":"","footnotes":""},"categories":[1],"tags":[103,660],"coauthors":[],"class_list":["post-3558","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-git","tag-git-2-8"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/3558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/users\/275"}],"replies":[{"embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=3558"}],"version-history":[{"count":0,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/3558\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=3558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=3558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=3558"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/coauthors?post=3558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}