{"id":2873,"date":"2021-01-06T17:15:24","date_gmt":"2021-01-06T08:15:24","guid":{"rendered":"https:\/\/github.blog\/jp\/?p=2873"},"modified":"2021-01-06T17:15:24","modified_gmt":"2021-01-06T08:15:24","slug":"commits-are-snapshots-not-diffs","status":"publish","type":"post","link":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/","title":{"rendered":"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044"},"content":{"rendered":"<p>Git \u306f<a href=\"https:\/\/stevelosh.com\/blog\/2013\/04\/git-koans\/\" rel=\"nofollow\">\u7d1b\u3089\u308f\u3057\u3044<\/a>\u3068\u3044\u3046<a href=\"https:\/\/m.xkcd.com\/1597\/\" rel=\"nofollow\">\u8a55\u5224<\/a>\u3067\u3059\u3002\u7528\u8a9e\u3084\u8a00\u3044\u56de\u3057\u304c\u610f\u5473\u3059\u308b\u3082\u306e\u3068\u3001\u305d\u3053\u304b\u3089\u60f3\u50cf\u3059\u308b\u6319\u52d5\u304c\u9055\u3063\u3066\u30e6\u30fc\u30b6\u30fc\u304c\u6df7\u4e71\u3059\u308b\u3068\u8a00\u308f\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001<code>git cherry-pick<\/code>\u00a0\u3084\u00a0<code>git rebase<\/code>\u00a0\u306e\u3088\u3046\u306a\u300c\u5c65\u6b74\u3092\u66f8\u304d\u63db\u3048\u308b\u300d\u30b3\u30de\u30f3\u30c9\u306b\u6700\u3082\u9855\u8457\u3067\u3059\u3002\u79c1\u306e\u7d4c\u9a13\u3067\u306f\u3001\u3053\u306e\u6df7\u4e71\u306e\u6839\u672c\u7684\u306a\u539f\u56e0\u306f\u3001\u30b3\u30df\u30c3\u30c8\u306f\u00a0<em>\u5dee\u5206<\/em>\u00a0\u3067\u3042\u308a\u9806\u756a\u3092\u5165\u308c\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u89e3\u91c8\u306b\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001<strong>\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u3063\u3066\u3001\u5dee\u5206\u3067\u306f\u3042\u308a\u307e\u305b\u3093!<\/strong><\/p>\n<p>Git \u304c\u30ea\u30dd\u30b8\u30c8\u30ea\u30c7\u30fc\u30bf\u3092\u3069\u306e\u3088\u3046\u306b\u4fdd\u5b58\u3057\u3066\u3044\u308b\u304b\u3092\u898b\u3066\u307f\u308b\u3068\u3001Git \u3092\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30e2\u30c7\u30eb\u3092\u8abf\u3079\u305f\u5f8c\u306b\u3001\u3053\u306e\u65b0\u3057\u3044\u8996\u70b9\u304c\u00a0<code>git cherry-pick<\/code>\u00a0\u3084\u00a0<code>git rebase<\/code>\u00a0\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u3069\u306e\u3088\u3046\u306b\u5f79\u7acb\u3064\u306e\u304b\u3092\u63a2\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><em>\u672c\u5f53\u306b\u6df1\u304f<\/em>\u00a0\u6398\u308a\u4e0b\u3052\u305f\u3044\u306e\u3067\u3042\u308c\u3070\u3001<a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Git-Objects\" rel=\"nofollow\">Pro Git \u3068\u3044\u3046\u66f8\u7c4d\u306e Git Internals \u306e\u7ae0<\/a>\u3092\u8aad\u3080\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u4f8b\u3068\u3057\u3066\u00a0<code>v2.29.2<\/code>\u00a0\u3067\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3057\u305f\u00a0<a href=\"https:\/\/github.com\/git\/git\">git\/git \u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u3092\u4f7f\u3044\u307e\u3059\u3002\u8a18\u4e8b\u3067\u7d39\u4ecb\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u4f8b\u306b\u5f93\u3063\u3066\u305c\u3072\u5b9f\u969b\u306b\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3><a id=\"user-content-\u30aa\u30d6\u30b8\u30a7\u30af\u30c8-id-\u306f\u30cf\u30c3\u30b7\u30e5\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88-id-%E3%81%AF%E3%83%8F%E3%83%83%E3%82%B7%E3%83%A5\" aria-hidden=\"true\"><\/a>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 ID \u306f\u30cf\u30c3\u30b7\u30e5<\/h3>\n<p>Git \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u6700\u3082\u91cd\u8981\u306a\u3053\u3068\u306f\u3001Git \u306f\u305d\u308c\u305e\u308c\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 ID (\u7565\u3057\u3066 OID) \u3067\u53c2\u7167\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u306e OID \u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u30e6\u30cb\u30fc\u30af\u306a\u540d\u524d\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e OID \u3092\u8abf\u3079\u308b\u306b\u306f\u00a0<a href=\"https:\/\/git-scm.com\/docs\/git-rev-parse\" rel=\"nofollow\"><code>git rev-parse &lt;ref&gt;<\/code>\u00a0\u30b3\u30de\u30f3\u30c9<\/a>\u00a0\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u57fa\u672c\u7684\u306b\u306f\u30d7\u30ec\u30fc\u30f3\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308a\u3001\u305d\u306e\u5185\u5bb9\u3092\u8abf\u3079\u308b\u306b\u306f\u00a0<a href=\"https:\/\/git-scm.com\/docs\/git-cat-file\" rel=\"nofollow\"><code>git cat-file -p &lt;oid&gt;<\/code>\u00a0\u30b3\u30de\u30f3\u30c9<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3082\u3063\u3068\u77ed\u3044 16 \u9032\u6570\u306e\u6587\u5b57\u5217\u3067\u8868\u73fe\u3055\u308c\u305f OID \u306e\u65b9\u3092\u3088\u304f\u76ee\u306b\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3053\u306e\u6587\u5b57\u5217\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306e\u305f\u3060\u4e00\u3064\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u6301\u3064 OID \u3068\u4e00\u81f4\u3059\u308b\u7701\u7565\u5f62\u3068\u3057\u3066\u5341\u5206\u306a\u9577\u3055\u306e\u3082\u306e\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3042\u307e\u308a\u306b\u3082\u77ed\u304f\u7701\u7565\u3057\u305f OID \u3092\u4f7f\u3063\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u578b\u3092\u8abf\u3079\u308b\u3068\u3001\u4e00\u81f4\u3059\u308b OID \u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git cat-file -t e0c03<\/span>\r\n<span class=\"pl-c1\">error: short SHA1 e0c03 is ambiguous<\/span>\r\n<span class=\"pl-c1\">hint: The candidates are:<\/span>\r\n<span class=\"pl-c1\">hint:   e0c03f27484 commit 2016-10-26 - contrib\/buildsystems: ignore irrelevant files in Generators\/<\/span>\r\n<span class=\"pl-c1\">hint:   e0c03653e72 tree<\/span>\r\n<span class=\"pl-c1\">hint:   e0c03c3eecc blob<\/span>\r\n<span class=\"pl-c1\">fatal: Not a valid object name e0c03<\/span><\/pre>\n<\/div>\n<p><code>blob<\/code>\u3001<code>tree<\/code>\u3001<code>commit<\/code>\u3068\u3044\u3046\u3053\u308c\u3089\u306e\u578b\u306f\u306a\u3093\u3067\u3057\u3087\u3046\u304b\uff1f\u9806\u306b\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3><a id=\"user-content-\u30d6\u30ed\u30d6\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%83%96%E3%83%AD%E3%83%96%E3%81%AF%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E5%86%85%E5%AE%B9\" aria-hidden=\"true\"><\/a>\u30d6\u30ed\u30d6\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u306e\u4e00\u756a\u4e0b\u306b\u4f4d\u7f6e\u3059\u308b\u00a0<strong>\u30d6\u30ed\u30d6<\/strong>\u00a0\u306b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u73fe\u5728\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u306e\u30d5\u30a1\u30a4\u30eb\u306e OID \u3092\u8abf\u3079\u308b\u306b\u306f\u3001\u00a0<code>git rev-parse HEAD:&lt;path&gt;<\/code>\u00a0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u00a0<code>git cat-file -p &lt;oid&gt;<\/code>\u00a0\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8abf\u3079\u307e\u3059\u3002<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git rev-parse HEAD:README.md<\/span>\r\n<span class=\"pl-c1\">eb8115e6b04814f0c37146bbe3dbc35f3e8992e0<\/span>\r\n\r\n$ <span class=\"pl-s1\">git cat-file -p eb8115e6b04814f0c37146bbe3dbc35f3e8992e0 <span class=\"pl-k\">|<\/span> head -n 8<\/span>\r\n<span class=\"pl-c1\">[![Build status](https:\/\/github.com\/git\/git\/workflows\/CI\/PR\/badge.png)](https:\/\/github.com\/git\/git\/actions?query=branch%3Amaster+event%3Apush)<\/span>\r\n\r\n<span class=\"pl-c1\">Git - fast, scalable, distributed revision control system<\/span>\r\n<span class=\"pl-c1\">=========================================================<\/span>\r\n\r\n<span class=\"pl-c1\">Git is a fast, scalable, distributed revision control system with an<\/span>\r\n<span class=\"pl-c1\">unusually rich command set that provides both high-level operations<\/span>\r\n<span class=\"pl-c1\">and full access to internals.<\/span><\/pre>\n<\/div>\n<p>\u30c7\u30a3\u30b9\u30af\u4e0a\u306e\u00a0<code>README.md<\/code>\u00a0\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3068\u3001\u00a0<code>git status<\/code>\u00a0\u306f\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u66f4\u65b0\u6642\u523b\u304c\u6700\u8fd1\u3067\u3042\u308b\u3053\u3068\u306b\u6c17\u4ed8\u304d\u3001\u305d\u306e\u5185\u5bb9\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002\u3082\u3057\u5185\u5bb9\u304c\u73fe\u5728\u306e\u00a0<code>HEAD:README.md<\/code>\u00a0\u306e OID \u3068\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u00a0<code>git status<\/code>\u00a0\u306f\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092 &#8220;modified on disk&#8221; \u3068\u8868\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u3001\u73fe\u5728\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u304c\u00a0<code>HEAD<\/code>\u00a0\u306e\u5185\u5bb9\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3><a id=\"user-content-\u30c4\u30ea\u30fc\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%83%84%E3%83%AA%E3%83%BC%E3%81%AF%E3%83%87%E3%82%A3%E3%83%AC%E3%82%AF%E3%83%88%E3%83%AA\" aria-hidden=\"true\"><\/a>\u30c4\u30ea\u30fc\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/h3>\n<p>\u30d6\u30ed\u30d6\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff01\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u3001Git \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8868\u73fe\u3067\u3042\u308b\u00a0<strong>\u30c4\u30ea\u30fc<\/strong>\u00a0\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u30c4\u30ea\u30fc\u3068\u306f\u3001\u30d1\u30b9\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u9806\u756a\u306b\u4e26\u3079\u305f\u3082\u306e\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7a2e\u985e\u3084\u30d5\u30a1\u30a4\u30eb\u30e2\u30fc\u30c9\u3001\u305d\u3057\u3066\u305d\u306e\u30d1\u30b9\u306b\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e OID \u3092\u6301\u3061\u307e\u3059\u3002\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u30c4\u30ea\u30fc\u3068\u3057\u3066\u8868\u73fe\u3055\u308c\u3001\u30c4\u30ea\u30fc\u306f\u4ed6\u306e\u30c4\u30ea\u30fc\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2875\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph1.png?w=400&#038;resize=400%2C240\" alt=\"\" width=\"400\" height=\"240\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph1.png?w=400 400w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph1.png?w=300 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>\u3053\u308c\u3089\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3069\u306e\u3088\u3046\u306b\u95a2\u9023\u3057\u3066\u3044\u308b\u304b\u3092\u8996\u899a\u5316\u3059\u308b\u305f\u3081\u306b\u56f3\u3092\u4f7f\u3044\u307e\u3059\u3002\u30d6\u30ed\u30d6\u306f\u56db\u89d2\u3001\u30c4\u30ea\u30fc\u306f\u4e09\u89d2\u3092\u4f7f\u3063\u3066\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git rev-parse HEAD^{tree}<\/span>\r\n<span class=\"pl-c1\">75130889f941eceb57c6ceb95c6f28dfc83b609c<\/span>\r\n\r\n$ <span class=\"pl-s1\">git cat-file -p 75130889f941eceb57c6ceb95c6f28dfc83b609c  <span class=\"pl-k\">|<\/span> head -n 15<\/span>\r\n<span class=\"pl-c1\">100644 blob c2f5fe385af1bbc161f6c010bdcf0048ab6671ed    .cirrus.yml<\/span>\r\n<span class=\"pl-c1\">100644 blob c592dda681fecfaa6bf64fb3f539eafaf4123ed8    .clang-format<\/span>\r\n<span class=\"pl-c1\">100644 blob f9d819623d832113014dd5d5366e8ee44ac9666a    .editorconfig<\/span>\r\n<span class=\"pl-c1\">100644 blob b08a1416d86012134f823fe51443f498f4911909    .gitattributes<\/span>\r\n<span class=\"pl-c1\">040000 tree fbe854556a4ae3d5897e7b92a3eb8636bb08f031    .github<\/span>\r\n<span class=\"pl-c1\">100644 blob 6232d339247fae5fdaeffed77ae0bbe4176ab2de    .gitignore<\/span>\r\n<span class=\"pl-c1\">100644 blob cbeebdab7a5e2c6afec338c3534930f569c90f63    .gitmodules<\/span>\r\n<span class=\"pl-c1\">100644 blob bde7aba756ea74c3af562874ab5c81a829e43c83    .mailmap<\/span>\r\n<span class=\"pl-c1\">100644 blob 05f3e3f8d79117c1d32bf5e433d0fd49de93125c    .travis.yml<\/span>\r\n<span class=\"pl-c1\">100644 blob 5ba86d68459e61f87dae1332c7f2402860b4280c    .tsan-suppressions<\/span>\r\n<span class=\"pl-c1\">100644 blob fc4645d5c08bd005238fc72cfa709495d8722e6a    CODE_OF_CONDUCT.md<\/span>\r\n<span class=\"pl-c1\">100644 blob 536e55524db72bd2acf175208aef4f3dfc148d42    COPYING<\/span>\r\n<span class=\"pl-c1\">040000 tree a58410edddbdd133cca6b3322bebe4fb37be93fa    Documentation<\/span>\r\n<span class=\"pl-c1\">100755 blob ca6ccb49866c595c80718d167e40cfad1ee7f376    GIT-VERSION-GEN<\/span>\r\n<span class=\"pl-c1\">100644 blob 9ba33e6a141a3906eb707dd11d1af4b0f8191a55    INSTALL<\/span><\/pre>\n<\/div>\n<p>\u30c4\u30ea\u30fc\u306f\u3001\u5404\u30b5\u30d6\u30a2\u30a4\u30c6\u30e0\u306e\u540d\u524d\u3092\u6301\u3061\u307e\u3059\u3002\u30c4\u30ea\u30fc\u306b\u306f\u3001Unix \u30d5\u30a1\u30a4\u30eb\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30bf\u30a4\u30d7\uff08<code>blob<\/code>\u307e\u305f\u306f<code>tree<\/code>\uff09\u3001\u5404\u30a8\u30f3\u30c8\u30ea\u306e OID \u306e\u60c5\u5831\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4e0a\u8a18\u3067\u306f\u4e0a\u4f4d 15 \u30a8\u30f3\u30c8\u30ea\u3060\u3051\u306b\u7d5e\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u00a0<code>grep<\/code>\u00a0\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u30c4\u30ea\u30fc\u306b\u5148\u307b\u3069\u306e\u30d6\u30ed\u30d6\u306e OID \u3092\u6307\u3059\u00a0<code>README.md<\/code>\u00a0\u30a8\u30f3\u30c8\u30ea\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git cat-file -p 75130889f941eceb57c6ceb95c6f28dfc83b609c <span class=\"pl-k\">|<\/span> grep README.md<\/span>\r\n<span class=\"pl-c1\">100644 blob eb8115e6b04814f0c37146bbe3dbc35f3e8992e0    README.md<\/span><\/pre>\n<\/div>\n<p>\u30c4\u30ea\u30fc\u306f\u3001\u3053\u308c\u3089\u306e\u30d1\u30b9\u30a8\u30f3\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u30d6\u30ed\u30d6\u3084\u4ed6\u306e\u30c4\u30ea\u30fc\u3092\u6307\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u4fc2\u306f\u30d1\u30b9\u540d\u3068\u5bfe\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u56f3\u306b\u793a\u3059\u969b\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d1\u30b9\u540d\u3092\u7701\u7565\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c4\u30ea\u30fc\u81ea\u4f53\u306f\u3001\u305d\u308c\u304c\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306e\u3069\u3053\u306b\u5b58\u5728\u3059\u308b\u304b\u3092\u77e5\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u5f79\u5272\u3092\u679c\u305f\u3059\u306e\u306f\u305d\u306e\u30c4\u30ea\u30fc\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002\u00a0<code>&lt;ref&gt;^{tree}<\/code>\u00a0\u3067\u53c2\u7167\u3055\u308c\u308b\u30c4\u30ea\u30fc\u306f\u3001\u7279\u5225\u306a\u30c4\u30ea\u30fc\u3001\u3064\u307e\u308a\u00a0<em>\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc<\/em>\u00a0\u3067\u3059\u3002\u3053\u306e\u6307\u5b9a\u65b9\u6cd5\u306f\uff08\u3053\u308c\u304b\u3089\u89e3\u8aac\u3059\u308b\uff09\u30b3\u30df\u30c3\u30c8\u304b\u3089\u306e\u7279\u5225\u306a\u30ea\u30f3\u30af\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3><a id=\"user-content-\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%82%B3%E3%83%9F%E3%83%83%E3%83%88%E3%81%AF%E3%82%B9%E3%83%8A%E3%83%83%E3%83%97%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88\" aria-hidden=\"true\"><\/a>\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8<\/h3>\n<p><strong>\u30b3\u30df\u30c3\u30c8<\/strong>\u00a0\u306f\u3042\u308b\u6642\u9593\u306b\u304a\u3051\u308b\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002\u5404\u30b3\u30df\u30c3\u30c8\u306b\u306f\u3001\u305d\u306e\u6642\u70b9\u3067\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u72b6\u614b\u3092\u8868\u3059\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u30b3\u30df\u30c3\u30c8\u306f\u3001\u4ee5\u524d\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306b\u5bfe\u5fdc\u3059\u308b\u89aa\u30b3\u30df\u30c3\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u6301\u3061\u307e\u3059\u3002\u89aa\u306e\u306a\u3044\u30b3\u30df\u30c3\u30c8\u306f\u30eb\u30fc\u30c8\u30b3\u30df\u30c3\u30c8\u3067\u3042\u308a\u3001\u8907\u6570\u306e\u89aa\u3092\u6301\u3064\u30b3\u30df\u30c3\u30c8\u306f\u30de\u30fc\u30b8\u30b3\u30df\u30c3\u30c8\u3067\u3059\u3002\u30b3\u30df\u30c3\u30c8\u306b\u306f\u3001\u4f5c\u6210\u8005\u3084\u30b3\u30df\u30c3\u30bf\u30fc\uff08\u540d\u524d\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u65e5\u4ed8\u3092\u542b\u3080\uff09\u3001\u304a\u3088\u3073\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3044\u3063\u305f\u30e1\u30bf\u30c7\u30fc\u30bf\u3082\u542b\u307e\u308c\u307e\u3059\u3002\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001\u30b3\u30df\u30c3\u30c8\u306e\u4f5c\u6210\u8005\u304c\u305d\u306e\u30b3\u30df\u30c3\u30c8\u306e\u76ee\u7684\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2876\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph2.png?w=399&#038;resize=399%2C268\" alt=\"\" width=\"399\" height=\"268\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph2.png?w=399 399w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph2.png?w=300 300w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/p>\n<p>\u305f\u3068\u3048\u3070\u3001Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u00a0<code>v2.29.2<\/code>\u00a0\u3067\u306e\u30b3\u30df\u30c3\u30c8\u306f\u3001\u305d\u306e\u30ea\u30ea\u30fc\u30b9\u306b\u3064\u3044\u3066\u306e\u3082\u306e\u3067\u3001Git \u30e1\u30f3\u30c6\u30ca\u304c\u4f5c\u6210\u3057\u30b3\u30df\u30c3\u30c8\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git rev-parse HEAD<\/span>\r\n<span class=\"pl-c1\">898f80736c75878acc02dc55672317fcc0e0a5a6<\/span>\r\n\r\n<span class=\"pl-c1\">\/c\/_git\/git ((v2.29.2))<\/span>\r\n$ <span class=\"pl-s1\">git cat-file -p 898f80736c75878acc02dc55672317fcc0e0a5a6<\/span>\r\n<span class=\"pl-c1\">tree 75130889f941eceb57c6ceb95c6f28dfc83b609c<\/span>\r\n<span class=\"pl-c1\">parent a94bce62b99be35f2ee2b4c98f97c222e7dd9d82<\/span>\r\n<span class=\"pl-c1\">author Junio C Hamano &lt;gitster@pobox.com&gt; 1604006649 -0700<\/span>\r\n<span class=\"pl-c1\">committer Junio C Hamano &lt;gitster@pobox.com&gt; 1604006649 -0700<\/span>\r\n\r\n<span class=\"pl-c1\">Git 2.29.2<\/span>\r\n\r\n<span class=\"pl-c1\">Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;<\/span><\/pre>\n<\/div>\n<p><code>git log<\/code>\u00a0\u306e\u5c65\u6b74\u3092\u3082\u3046\u5c11\u3057\u898b\u3066\u307f\u308b\u3068\u3001\u305d\u306e\u30b3\u30df\u30c3\u30c8\u3068\u305d\u306e\u89aa\u3068\u306e\u9593\u306e\u5909\u66f4\u306b\u3064\u3044\u3066\u3001\u3088\u308a\u8aac\u660e\u7684\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git cat-file -p 16b0bb99eac5ebd02a5dcabdff2cfc390e9d92ef<\/span>\r\n<span class=\"pl-c1\">tree d0e42501b1cf65395e91e22e74f75fc5caa0286e<\/span>\r\n<span class=\"pl-c1\">parent 56706dba33f5d4457395c651cf1cd033c6c03c7a<\/span>\r\n<span class=\"pl-c1\">author Jeff King &amp;lt;peff@peff.net&amp;gt; 1603436979 -0400<\/span>\r\n<span class=\"pl-c1\">committer Junio C Hamano &amp;lt;gitster@pobox.com&amp;gt; 1603466719 -0700<\/span>\r\n\r\n<span class=\"pl-c1\">am: fix broken email with --committer-date-is-author-date<\/span>\r\n\r\n<span class=\"pl-c1\">Commit e8cbe2118a (am: stop exporting GIT_COMMITTER_DATE, 2020-08-17)<\/span>\r\n<span class=\"pl-c1\">rewrote the code for setting the committer date to use fmt_ident(),<\/span>\r\n<span class=\"pl-c1\">rather than setting an environment variable and letting commit_tree()<\/span>\r\n<span class=\"pl-c1\">handle it. But it introduced two bugs:<\/span>\r\n\r\n<span class=\"pl-c1\">- we use the author email string instead of the committer email<\/span>\r\n\r\n<span class=\"pl-c1\">- when parsing the committer ident, we used the wrong variable to<\/span>\r\n<span class=\"pl-c1\">compute the length of the email, resulting in it always being a<\/span>\r\n<span class=\"pl-c1\">zero-length string<\/span>\r\n\r\n<span class=\"pl-c1\">This commit fixes both, which causes our test of this option via the<\/span>\r\n<span class=\"pl-c1\">rebase \"apply\" backend to now succeed.<\/span>\r\n\r\n<span class=\"pl-c1\">Signed-off-by: Jeff King &amp;lt;peff@peff.net&amp;gt; Signed-off-by: Junio C Hamano &amp;lt;gitster@pobox.com&amp;gt;<\/span><\/pre>\n<\/div>\n<p>\u79c1\u305f\u3061\u306e\u56f3\u3067\u306f\u3001\u30b3\u30df\u30c3\u30c8\u3092\u8868\u3059\u305f\u3081\u306b\u5186\u3092\u4f7f\u3044\u307e\u3059\u3002\u5fa9\u7fd2\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\u56db\u89d2\u5f62\u306f<strong>\u30d6\u30ed\u30d6<\/strong>\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>\u4e09\u89d2\u5f62\u306f<strong>\u30c4\u30ea\u30fc<\/strong>\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8868\u3057\u307e\u3059\u3002<\/li>\n<li>\u5186\u306f<strong>\u30b3\u30df\u30c3\u30c8<\/strong>\u3067\u3059\u3002\u3042\u308b\u6642\u70b9\u3067\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002<\/li>\n<\/ul>\n<h3><a id=\"user-content-\u30d6\u30e9\u30f3\u30c1\u306f\u30dd\u30a4\u30f3\u30bf\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%83%96%E3%83%A9%E3%83%B3%E3%83%81%E3%81%AF%E3%83%9D%E3%82%A4%E3%83%B3%E3%82%BF\" aria-hidden=\"true\"><\/a>\u30d6\u30e9\u30f3\u30c1\u306f\u30dd\u30a4\u30f3\u30bf<\/h3>\n<p>Git \u3067\u306f\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408 OID \u3092\u53c2\u7167\u305b\u305a\u306b\u5c65\u6b74\u3092\u79fb\u52d5\u3057\u305f\u308a\u5909\u66f4\u3092\u884c\u3063\u305f\u308a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30d6\u30e9\u30f3\u30c1\u304c\u30b3\u30df\u30c3\u30c8\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u308b\u304b\u3089\u3067\u3059\u3002<code>main<\/code>\u00a0\u3068\u3044\u3046\u540d\u524d\u306e\u30d6\u30e9\u30f3\u30c1\u306f\u3001\u5b9f\u969b\u306b\u306f\u00a0<code>refs\/heads\/main<\/code>\u00a0\u3068\u547c\u3070\u308c\u308b Git \u306e\u53c2\u7167\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u53c2\u7167\u3057\u3066\u3044\u308b\u30b3\u30df\u30c3\u30c8\u306e OID \u3067\u3042\u308b 16 \u9032\u6570\u306e\u6587\u5b57\u5217\u304c\u5b9f\u969b\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4f5c\u696d\u3092\u3057\u3066\u3044\u308b\u3046\u3061\u306b\u3001\u3053\u308c\u3089\u306e\u53c2\u7167\u306e\u5185\u5bb9\u306f\u4ed6\u306e\u30b3\u30df\u30c3\u30c8\u3092\u6307\u3059\u3088\u3046\u306b\u5909\u5316\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u30d6\u30e9\u30f3\u30c1\u304c\u3053\u308c\u307e\u3067\u306e Git \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u306f\u5927\u304d\u304f\u7570\u306a\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u30b3\u30df\u30c3\u30c8\u3084\u30c4\u30ea\u30fc\u3001\u30d6\u30ed\u30d6\u306f\u00a0<em>\u4e0d\u5909<\/em>\u00a0\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u3053\u308c\u3089\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3082\u3057\u5185\u5bb9\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3001\u7570\u306a\u308b\u30cf\u30c3\u30b7\u30e5\u3068\u306a\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u65b0\u3057\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u7167\u3059\u308b\u65b0\u3057\u3044 OID \u3092\u5f97\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff01\u30d6\u30e9\u30f3\u30c1\u306f\u308f\u304b\u308a\u3084\u3059\u3055\u306e\u305f\u3081\u306b\u30e6\u30fc\u30b6\u304c\u547d\u540d\u3057\u305f\u3082\u306e\u3067\u3001\u4f8b\u3048\u3070\u00a0<code>trunk<\/code>\u00a0\u3084\u00a0<code>my-special-project<\/code>\u00a0\u306a\u3069\u3067\u3059\u3002\u4f5c\u696d\u3092\u8ffd\u8de1\u3057\u305f\u308a\u5171\u6709\u3057\u305f\u308a\u3059\u308b\u305f\u3081\u306b\u30d6\u30e9\u30f3\u30c1\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u7279\u5225\u306a\u53c2\u7167\u3067\u3042\u308b\u00a0<code>HEAD<\/code>\u00a0\u306f\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u3057\u307e\u3059\u3002<code>HEAD<\/code>\u00a0\u306b\u30b3\u30df\u30c3\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\u305d\u306e\u30d6\u30e9\u30f3\u30c1\u306f\u81ea\u52d5\u7684\u306b\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u306b\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3066\u00a0<code>HEAD<\/code>\u00a0\u3092\u66f4\u65b0\u3059\u308b\u306b\u306f\u00a0<code>git switch -c<\/code>\u00a0\u3092\u4f7f\u3044\u307e\u3059:<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git switch -c my-branch<\/span>\r\n<span class=\"pl-c1\">Switched to a new branch 'my-branch'<\/span>\r\n$ <span class=\"pl-s1\">cat .git\/refs\/heads\/my-branch<\/span>\r\n<span class=\"pl-c1\">1ec19b7757a1acb11332f06e8e812b505490afc6<\/span>\r\n$ <span class=\"pl-s1\">cat .git\/HEAD<\/span>\r\n<span class=\"pl-c1\">ref: refs\/heads\/my-branch<\/span><\/pre>\n<\/div>\n<p><code>my-branch<\/code>\u00a0\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u73fe\u5728\u306e\u30b3\u30df\u30c3\u30c8\u306e OID \u3092\u542b\u3080\u30d5\u30a1\u30a4\u30eb \uff08<code>.git\/refs\/heads\/my-branch<\/code>\uff09 \u304c\u4f5c\u6210\u3055\u308c\u3001\u00a0<code>.git\/HEAD<\/code>\u00a0\u30d5\u30a1\u30a4\u30eb\u304c\u3053\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u3059\u3088\u3046\u306b\u66f4\u65b0\u3055\u308c\u305f\u3053\u3068\u306b\u6ce8\u76ee\u3057\u307e\u3057\u3087\u3046\u3002\u3055\u3066\u3001\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u00a0<code>HEAD<\/code>\u00a0\u3092\u66f4\u65b0\u3059\u308b\u3068\u3001\u00a0<code>my-branch<\/code>\u00a0\u306e\u30d6\u30e9\u30f3\u30c1\u306f\u305d\u306e\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3092\u6307\u3059\u3088\u3046\u306b\u66f4\u65b0\u3055\u308c\u307e\u3059\uff01<\/p>\n<h3><a id=\"user-content-\u5168\u4f53\u50cf\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E5%85%A8%E4%BD%93%E5%83%8F\" aria-hidden=\"true\"><\/a>\u5168\u4f53\u50cf<\/h3>\n<p>\u3053\u308c\u3089\u306e\u65b0\u3057\u3044\u7528\u8a9e\u3092\u4e00\u3064\u306e\u5de8\u5927\u306a\u56f3\u306b\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30d6\u30e9\u30f3\u30c1\u306f\u30b3\u30df\u30c3\u30c8\u3092\u6307\u3057\u3001\u30b3\u30df\u30c3\u30c8\u306f\u4ed6\u306e\u30b3\u30df\u30c3\u30c8\u3068\u305d\u306e\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u3092\u6307\u3057\u3001\u30c4\u30ea\u30fc\u306f\u30d6\u30ed\u30d6\u3068\u4ed6\u306e\u30c4\u30ea\u30fc\u3092\u6307\u3057\u3001\u30d6\u30ed\u30d6\u306f\u4f55\u3082\u6307\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u3053\u308c\u3089\u3059\u3079\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4e00\u3064\u306b\u307e\u3068\u3081\u305f\u56f3\u3092\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2877\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph3.png?w=781&#038;resize=781%2C383\" alt=\"\" width=\"781\" height=\"383\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph3.png?w=781 781w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph3.png?w=300 300w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph3.png?w=768 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<p>\u3053\u306e\u56f3\u3067\u306f\u3001\u6642\u9593\u306f\u5de6\u304b\u3089\u53f3\u306b\u5411\u304b\u3063\u3066\u7d4c\u904e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u30b3\u30df\u30c3\u30c8\u304b\u3089\u305d\u306e\u89aa\u3078\u306e\u77e2\u5370\u306f\u53f3\u304b\u3089\u5de6\u306b\u5411\u304b\u3063\u3066\u3044\u307e\u3059\u3002\u5404\u30b3\u30df\u30c3\u30c8\u306f\u4e00\u3064\u306e\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u00a0<code>HEAD<\/code>\u00a0\u306f\u3053\u3053\u3067\u306f\u00a0<code>main<\/code>\u00a0\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u3057\u3001\u00a0<code>main<\/code>\u00a0\u306f\u6700\u3082\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3092\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b3\u30df\u30c3\u30c8\u306e\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u306e\u4e0b\u306f\u5b8c\u5168\u306b\u5c55\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u304b\u3089\u306f\u3053\u308c\u3089\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3059\u77e2\u5370\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5185\u5bb9\u304c\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u8907\u6570\u306e\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u304b\u3089\u53c2\u7167\u53ef\u80fd\u3060\u304b\u3089\u3067\u3059\uff01\u3053\u308c\u3089\u306e\u30c4\u30ea\u30fc\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e OID (\u5185\u5bb9) \u3092\u4f7f\u3063\u3066\u53c2\u7167\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3089\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306f\u540c\u3058\u5185\u5bb9\u306e\u30c7\u30fc\u30bf\u3092\u8907\u6570\u30b3\u30d4\u30fc\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u3001Git \u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u306f\u00a0<a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%83%8F%E3%83%83%E3%82%B7%E3%83%A5%E6%9C%A8\" rel=\"nofollow\">\u30de\u30fc\u30af\u30eb\u6728<\/a>\u00a0\u3092\u5f62\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u3092\u898b\u308b\u3068\u3001\u306a\u305c\u30b3\u30df\u30c3\u30c8\u304c\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306a\u306e\u304b\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u5404\u30b3\u30df\u30c3\u30c8\u306f\u3001\u305d\u306e\u30b3\u30df\u30c3\u30c8\u3067\u671f\u5f85\u3059\u308b\u5b8c\u5168\u306a\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u76f4\u63a5\u30ea\u30f3\u30af\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3><a id=\"user-content-\u5dee\u5206\u306e\u8a08\u7b97\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E5%B7%AE%E5%88%86%E3%81%AE%E8%A8%88%E7%AE%97\" aria-hidden=\"true\"><\/a>\u5dee\u5206\u306e\u8a08\u7b97<\/h3>\n<p>\u30b3\u30df\u30c3\u30c8\u304c\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u30b3\u30df\u30c3\u30c8\u3092\u5c65\u6b74\u30d3\u30e5\u30fc\u3084\u00a0<a href=\"https:\/\/github.com\/git\/git\/commit\/16b0bb99eac5ebd02a5dcabdff2cfc390e9d92ef\">GitHub \u4e0a\u3067\u5dee\u5206\u3068\u3057\u3066<\/a>\u00a0\u898b\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u5b9f\u969b\u3001\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u306f\u3053\u306e\u5dee\u5206\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u5dee\u5206\u306f\u3001\u30b3\u30df\u30c3\u30c8\u306e\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u3068\u305d\u306e\u89aa\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u30c7\u30fc\u30bf\u304b\u3089\u00a0<em>\u52d5\u7684\u306b\u751f\u6210<\/em>\u00a0\u3055\u308c\u307e\u3059\u3002Git \u306f\u3001\u96a3\u63a5\u3059\u308b\u30b3\u30df\u30c3\u30c8\u3060\u3051\u3067\u306a\u304f\u3001\u4efb\u610f\u306e\u4e8c\u3064\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e8c\u3064\u306e\u30b3\u30df\u30c3\u30c8\u3092\u6bd4\u8f03\u3059\u308b\u306b\u306f\u3001\u307e\u305a\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u3089\u306f\u307b\u307c\u5e38\u306b\u7570\u306a\u308a\u307e\u3059\u3002\u6b21\u306b\u3001\u3053\u306e\u4e8c\u3064\u306e\u30b5\u30d6\u30c4\u30ea\u30fc\u306b\u5bfe\u3057\u3066\u6df1\u3055\u512a\u5148\u63a2\u7d22\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u306e\u63a2\u7d22\u3067\u306f\u73fe\u5728\u306e\u30c4\u30ea\u30fc\u306e\u30d1\u30b9\u306b\u5bfe\u3057\u3066\u7570\u306a\u308b OID \u3092\u6301\u3064\u3088\u3046\u306a\u30da\u30a2\u3092\u63a2\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u306e\u00a0<code>docs<\/code>\u00a0\u306e\u5024\u304c\u7570\u306a\u308b\u306e\u3067\u3001\u3053\u308c\u3089\u4e8c\u3064\u306e\u30c4\u30ea\u30fc\u3092\u518d\u5e30\u7684\u306b\u63a2\u7d22\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c4\u30ea\u30fc\u306f\u00a0<code>M.md<\/code>\u00a0\u306e\u5024\u304c\u7570\u306a\u308b\u306e\u3067\u3001\u3053\u308c\u3089\u4e8c\u3064\u306e\u30d6\u30ed\u30d6\u3092 1 \u884c\u3054\u3068\u306b\u6bd4\u8f03\u3057\u3001\u305d\u306e\u5dee\u5206\u3092\u8868\u793a\u3057\u307e\u3059\u3002<code>docs<\/code>\u00a0\u5185\u3067\u3042\u3063\u305f\u3068\u3057\u3066\u3082\u00a0<code>N.md<\/code>\u00a0\u306f\u540c\u3058\u306a\u306e\u3067\u3001\u305d\u308c\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u306b\u623b\u308a\u307e\u3059\u3002\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u3067\u306f\u3001\u00a0<code>things<\/code>\u00a0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u00a0<code>README.md<\/code>\u00a0\u306f\u540c\u3058 OID \u3092\u6301\u3064\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2878\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph4.png?w=439&#038;resize=439%2C265\" alt=\"\" width=\"439\" height=\"265\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph4.png?w=439 439w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph4.png?w=300 300w\" sizes=\"auto, (max-width: 439px) 100vw, 439px\" \/><\/p>\n<p>\u4e0a\u306e\u56f3\u3067\u306f\u3001\u00a0<code>things<\/code>\u00a0\u30c4\u30ea\u30fc\u306f\u691c\u67fb\u3057\u306a\u3044\u306e\u3067\u3001\u305d\u3053\u304b\u3089\u5230\u9054\u53ef\u80fd\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u691c\u67fb\u3057\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u3001\u5dee\u5206\u3092\u8a08\u7b97\u3059\u308b\u30b3\u30b9\u30c8\u306f\u3001\u5185\u5bb9\u306e\u7570\u306a\u308b\u30d1\u30b9\u306e\u6570\u306b\u6bd4\u4f8b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u00a0<strong>\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a<\/strong>\u3001\u4efb\u610f\u306e\u4e8c\u3064\u306e\u30b3\u30df\u30c3\u30c8\u9593\u306e\u5dee\u5206\u3092\u52d5\u7684\u306b\u8a08\u7b97\u3067\u304d\u308b\u3053\u3068\u304c\u7406\u89e3\u3067\u304d\u307e\u3057\u305f\u3002\u3067\u306f\u3001\u306a\u305c\u3053\u308c\u304c\u4e00\u822c\u7684\u306a\u77e5\u8b58\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u306a\u305c\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u30b3\u30df\u30c3\u30c8\u304c\u5dee\u5206\u3067\u3042\u308b\u3068\u3044\u3046\u8aa4\u3063\u305f\u8003\u3048\u3092\u6301\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u79c1\u306e\u597d\u304d\u306a\u4f8b\u3048\u306e\u3072\u3068\u3064\u306b\u3001\u30b3\u30df\u30c3\u30c8\u306f<a href=\"https:\/\/www.thirtythreeforty.net\/posts\/2020\/01\/the-wave-particle-duality-of-git-commits\/\" rel=\"nofollow\">\u7c92\u5b50\u3068\u6ce2\u52d5\u306e\u4e8c\u91cd\u6027<\/a>\u00a0\u3092\u6301\u3064\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u4f8b\u3048\u304c\u610f\u5473\u3059\u308b\u306e\u306f\u3001\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3053\u3068\u3082\u3042\u308c\u3070\u5dee\u5206\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3053\u3068\u3082\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u554f\u984c\u306e\u6838\u5fc3\u306f\u3001Git \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u306a\u3044\u5225\u306e\u7a2e\u985e\u306e\u30c7\u30fc\u30bf\u3001\u30d1\u30c3\u30c1\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3><a id=\"user-content-\u5f85\u3063\u3066\u30d1\u30c3\u30c1\u3063\u3066\u4f55\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E5%BE%85%E3%81%A3%E3%81%A6%E3%83%91%E3%83%83%E3%83%81%E3%81%A3%E3%81%A6%E4%BD%95\" aria-hidden=\"true\"><\/a>\u5f85\u3063\u3066\u3001\u30d1\u30c3\u30c1\u3063\u3066\u4f55\uff1f<\/h3>\n<p><em>\u30d1\u30c3\u30c1<\/em>\u00a0\u3068\u306f\u3001\u65e2\u5b58\u306e\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3078\u306e\u5909\u66f4\u3092\u8a18\u8ff0\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u6587\u66f8\u306e\u3053\u3068\u3067\u3059\u3002\u30d1\u30c3\u30c1\u306f\u3001\u975e\u5e38\u306b\u5206\u6563\u3057\u305f\u30b0\u30eb\u30fc\u30d7\u304c Git \u30b3\u30df\u30c3\u30c8\u3092\u76f4\u63a5\u4f7f\u308f\u305a\u306b\u30b3\u30fc\u30c9\u3092\u5171\u6709\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<a href=\"https:\/\/lore.kernel.org\/git\" rel=\"nofollow\">Git \u306e\u30e1\u30fc\u30ea\u30f3\u30b0\u30ea\u30b9\u30c8<\/a>\u00a0\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30d1\u30c3\u30c1\u304c\u3084\u308a\u53d6\u308a\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u76ee\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30c3\u30c1\u306b\u306f\u3001\u5909\u66f4\u70b9\u306e\u8aac\u660e\u3068\u3001\u305d\u306e\u5909\u66f4\u70b9\u304c\u306a\u305c\u4fa1\u5024\u3042\u308b\u3082\u306e\u306a\u306e\u304b\u3068\u3044\u3046\u7406\u7531\u304c\u66f8\u304b\u308c\u3066\u304a\u308a\u3001\u305d\u308c\u306b\u7d9a\u3044\u3066\u5dee\u5206\u304c\u4ed8\u3051\u3089\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u305d\u306e\u5909\u66f4\u3092\u81ea\u5206\u304c\u6301\u3063\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306e\u30b3\u30d4\u30fc\u306b\u00a0<em>\u9069\u7528<\/em>\u00a0\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3001\u3068\u3044\u3046\u30a2\u30a4\u30c7\u30a2\u3067\u3059\u3002<\/p>\n<p>Git \u3067\u306f\u3001\u00a0<code>git format-patch<\/code>\u00a0\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30df\u30c3\u30c8\u3092\u30d1\u30c3\u30c1\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u00a0<code>git apply<\/code>\u00a0\u3092\u4f7f\u3048\u3070\u3001Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30d1\u30c3\u30c1\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u521d\u671f\u306e\u9803\u306f\u3053\u308c\u304c\u30b3\u30fc\u30c9\u3092\u5171\u6709\u3059\u308b\u305f\u3081\u306e\u4e3b\u6d41\u306e\u65b9\u6cd5\u3067\u3057\u305f\u304c\u3001\u307b\u3068\u3093\u3069\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f7f\u3063\u3066\u76f4\u63a5 Git \u306e\u30b3\u30df\u30c3\u30c8\u3092\u5171\u6709\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d1\u30c3\u30c1\u3092\u5171\u6709\u3059\u308b\u5834\u5408\u306e\u6700\u5927\u306e\u554f\u984c\u70b9\u306f\u3001\u30d1\u30c3\u30c1\u306f\u89aa\u306e\u60c5\u5831\u3092\u5931\u3044\u3001\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u306f\u65e2\u5b58\u306e\u00a0<code>HEAD<\/code>\u00a0\u3092\u89aa\u3068\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3057\u304b\u3082\u3001\u3082\u3057\u540c\u3058\u89aa\u3092\u6301\u3063\u3066\u3044\u3066\u3082\u5225\u306e\u30b3\u30df\u30c3\u30c8\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3060\u3051\u3067\u306a\u304f\u3001\u30b3\u30df\u30c3\u30bf\u30fc\u3082\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3059\uff01\u3053\u308c\u304c\u3001Git \u304c\u30b3\u30df\u30c3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u300cauthor\u300d\u3068\u300ccommitter\u300d\u306e\u4e21\u65b9\u3092\u6301\u3064\u6839\u6e90\u7684\u306a\u7406\u7531\u3067\u3059\u3002<\/p>\n<p>\u30d1\u30c3\u30c1\u3092\u4f7f\u3046\u5834\u5408\u306e\u6700\u5927\u306e\u554f\u984c\u70b9\u306f\u3001\u81ea\u5206\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u9001\u4fe1\u8005\u306e\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3068\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u306b\u30d1\u30c3\u30c1\u3092\u9069\u7528\u3059\u308b\u306e\u304c\u96e3\u3057\u3044\u3053\u3068\u3067\u3059\u3002\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3092\u5931\u3046\u3068\u3001\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u306e\u89e3\u6c7a\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c\u30d1\u30c3\u30c1\u3092\u3084\u308a\u3068\u308a\u3059\u308b\u300d\u3068\u3044\u3046\u3053\u306e\u8003\u3048\u65b9\u306f\u3001\u300c\u30b3\u30df\u30c3\u30c8\u3092\u3084\u308a\u53d6\u308a\u3059\u308b\u300d\u3068\u8a00\u3044\u63db\u3048\u3089\u308c\u3066\u3044\u304f\u3064\u304b\u306e Git \u30b3\u30de\u30f3\u30c9\u306b\u5f15\u304d\u7d99\u304c\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4ee3\u308f\u308a\u306b\u3001\u5b9f\u969b\u306b\u8d77\u3053\u3063\u3066\u3044\u308b\u306e\u306f\u30b3\u30df\u30c3\u30c8\u306e\u5dee\u5206\u304c\u518d\u8a08\u7b97\u3055\u308c\u3001\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<h3><a id=\"user-content-\u30b3\u30df\u30c3\u30c8\u304c\u5dee\u5206\u3067\u306a\u3044\u306e\u306a\u3089-git-cherry-pick-\u306f\u4f55\u3092\u3057\u3066\u3044\u308b\u306e\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%82%B3%E3%83%9F%E3%83%83%E3%83%88%E3%81%8C%E5%B7%AE%E5%88%86%E3%81%A7%E3%81%AA%E3%81%84%E3%81%AE%E3%81%AA%E3%82%89-git-cherry-pick-%E3%81%AF%E4%BD%95%E3%82%92%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE\" aria-hidden=\"true\"><\/a>\u30b3\u30df\u30c3\u30c8\u304c\u5dee\u5206\u3067\u306a\u3044\u306e\u306a\u3089\u00a0<code>git cherry-pick<\/code>\u00a0\u306f\u4f55\u3092\u3057\u3066\u3044\u308b\u306e\uff1f<\/h3>\n<p><a href=\"https:\/\/git-scm.com\/docs\/git-cherry-pick\" rel=\"nofollow\"><code>git cherry-pick &lt;oid&gt;<\/code>\u00a0\u30b3\u30de\u30f3\u30c9<\/a>\u306f\u3001<code>&lt;oid&gt;<\/code>\u00a0\u3068\u306e\u5dee\u5206\u3068\u540c\u4e00\u306e\u5dee\u5206\u3092\u6301\u3061\u3001\u73fe\u5728\u306e\u30b3\u30df\u30c3\u30c8\u304c\u89aa\u3068\u306a\u308b\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Git \u306f\u57fa\u672c\u7684\u306b\u3001\u6b21\u306e\u3088\u3046\u306a\u624b\u9806\u3092\u8e0f\u3093\u3067\u3044\u307e\u3059:<\/p>\n<ol>\n<li>\u30b3\u30df\u30c3\u30c8\u00a0<code>&lt;oid&gt;<\/code>\u00a0\u3068\u305d\u306e\u89aa\u3068\u306e\u5dee\u5206\u3092\u8a08\u7b97\u3059\u308b\u3002<\/li>\n<li>\u305d\u306e\u5dee\u5206\u3092\u73fe\u5728\u306e\u00a0<code>HEAD<\/code>\u00a0\u306b\u9069\u7528\u3059\u308b\u3002<\/li>\n<li>\u30eb\u30fc\u30c8\u30c4\u30ea\u30fc\u304c\u65b0\u3057\u3044\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30de\u30c3\u30c1\u3057\u3001\u305d\u306e\u89aa\u304c\u00a0<code>HEAD<\/code>\u00a0\u306e\u30b3\u30df\u30c3\u30c8\u3067\u3042\u308b\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<\/li>\n<li><code>HEAD<\/code>\u00a0\u306e\u53c2\u7167\u3092\u305d\u306e\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u306b\u79fb\u52d5\u3059\u308b\u3002<\/li>\n<\/ol>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2879\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph5.png?w=477&#038;resize=477%2C362\" alt=\"\" width=\"477\" height=\"362\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph5.png?w=477 477w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph5.png?w=300 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/p>\n<p>Git \u304c\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u305f\u5f8c\u3001<code>git log -1 -p HEAD<\/code>\u00a0\u306e\u51fa\u529b\u306f\u00a0<code>git log -1 -p &lt;oid&gt;<\/code>\u00a0\u306e\u51fa\u529b\u3068\u4e00\u81f4\u3059\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u73fe\u5728\u306e\u00a0<code>HEAD<\/code>\u00a0\u306e\u4e0a\u306b\u3042\u308b\u30b3\u30df\u30c3\u30c8\u3092\u300c\u79fb\u52d5\u300d\u3057\u305f\u306e\u3067\u306f\u306a\u304f\u3001\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u305d\u306e\u5dee\u5206\u304c\u53e4\u3044\u30b3\u30df\u30c3\u30c8\u306b\u30de\u30c3\u30c1\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<\/p>\n<h3><a id=\"user-content-\u30b3\u30df\u30c3\u30c8\u304c\u5dee\u5206\u3067\u306a\u3044\u306e\u306a\u3089git-rebase\u306f\u4f55\u3092\u3057\u3066\u3044\u308b\u306e\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%82%B3%E3%83%9F%E3%83%83%E3%83%88%E3%81%8C%E5%B7%AE%E5%88%86%E3%81%A7%E3%81%AA%E3%81%84%E3%81%AE%E3%81%AA%E3%82%89git-rebase%E3%81%AF%E4%BD%95%E3%82%92%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE\" aria-hidden=\"true\"><\/a>\u30b3\u30df\u30c3\u30c8\u304c\u5dee\u5206\u3067\u306a\u3044\u306e\u306a\u3089<code>git rebase<\/code>\u306f\u4f55\u3092\u3057\u3066\u3044\u308b\u306e\uff1f<\/h3>\n<p><code>git rebase<\/code>\u00a0\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30b3\u30df\u30c3\u30c8\u3092\u79fb\u52d5\u3057\u3066\u65b0\u3057\u3044\u5c65\u6b74\u3092\u6301\u3064\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002\u6700\u3082\u57fa\u672c\u7684\u306a\u5f62\u3067\u306f\u3001<code>git cherry-pick<\/code>\u00a0\u3092\u8907\u6570\u56de\u5b9f\u884c\u3057\u305f\u3060\u3051\u306e\u3082\u306e\u3067\u3001\u5dee\u5206\u3092\u5225\u306e\u30b3\u30df\u30c3\u30c8\u306e\u4e0a\u306b\u91cd\u306d\u3066\u9069\u7528\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u3082\u91cd\u8981\u306a\u3053\u3068\u306f\u3001\u00a0<code>git rebase &lt;target&gt;<\/code>\u00a0\u306f\u00a0<code>HEAD<\/code>\u00a0\u304b\u3089\u306f\u5230\u9054\u53ef\u80fd\u3060\u304c\u00a0<code>&lt;target&gt;<\/code>\u00a0\u304b\u3089\u306f\u5230\u9054\u3067\u304d\u306a\u3044\u30b3\u30df\u30c3\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u898b\u3064\u3051\u308b\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<code>git log --oneline &lt;target&gt;..HEAD<\/code>\u00a0\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u308c\u3089\u306e\u30b3\u30df\u30c3\u30c8\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u00a0<code>rebase<\/code>\u00a0\u30b3\u30de\u30f3\u30c9\u306f\u5358\u7d14\u306b\u00a0<code>&lt;target&gt;<\/code>\u00a0\u306b\u79fb\u52d5\u3057\u3001\u898b\u3064\u3051\u305f\u30b3\u30df\u30c3\u30c8\u305f\u3061\u306b\u5bfe\u3057\u3066\u00a0<code>git cherry-pick<\/code>\u00a0\u30b3\u30de\u30f3\u30c9\u3092\u6700\u3082\u53e4\u3044\u30b3\u30df\u30c3\u30c8\u304b\u3089\u9806\u306b\u5b9f\u884c\u3057\u59cb\u3081\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u6700\u7d42\u7684\u306b\u3001\u5143\u306e\u30b3\u30df\u30c3\u30c8\u305f\u3061\u3068\u4f3c\u305f\u3088\u3046\u306a\u5dee\u5206\u3092\u6301\u3061\u306a\u304c\u3089\u3082\u00a0<em>OID \u304c\u7570\u306a\u308b<\/em>\u00a0\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u306e\u30bb\u30c3\u30c8\u304c\u3067\u304d\u3042\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001<code>target<\/code>\u00a0\u30d6\u30e9\u30f3\u30c1\u3092\u5206\u5c90\u3057\u3066\u304b\u3089\u3001\u65b0\u305f\u306b\uff13\u3064\u306e\u30b3\u30df\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u305f\u73fe\u5728\u306e\u00a0<code>HEAD<\/code>\u00a0\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<code>git rebase target<\/code>\u00a0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5171\u901a\u306e\u30d9\u30fc\u30b9\u3067\u3042\u308b\u00a0<code>P<\/code>\u00a0\u304c\u8a08\u7b97\u3055\u308c\u3001\u30b3\u30df\u30c3\u30c8\u30ea\u30b9\u30c8\u00a0<code>A<\/code>\u3001<code>B<\/code>\u3001<code>C<\/code>\u00a0\u304c\u6c7a\u5b9a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30b3\u30df\u30c3\u30c8\u306f\u00a0<code>target<\/code>\u00a0\u306b\u5bfe\u3057\u3066\u30c1\u30a7\u30ea\u30fc\u30d4\u30c3\u30af\u3055\u308c\u3066\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u00a0<code>A'<\/code>\u3001<code>B'<\/code>\u3001<code>C'<\/code>\u00a0\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2880\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph6.png?w=513&#038;resize=513%2C237\" alt=\"\" width=\"513\" height=\"237\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph6.png?w=513 513w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/Graph6.png?w=300 300w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><\/p>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30df\u30c3\u30c8\u00a0<code>A'<\/code>,\u00a0<code>B'<\/code>,\u00a0<code>C'<\/code>\u00a0\u306f\u3001<code>A<\/code>,\u00a0<code>B<\/code>,\u00a0<code>C<\/code>\u00a0\u3068\u591a\u304f\u306e\u60c5\u5831\u3092\u5171\u6709\u3057\u3066\u306f\u3044\u307e\u3059\u304c\u3001\u5168\u304f\u65b0\u3057\u3044\u5225\u306e\u30b3\u30df\u30c3\u30c8\u3067\u3059\u3002\u5b9f\u969b\u3001\u53e4\u3044\u30b3\u30df\u30c3\u30c8\u306f\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3055\u308c\u308b\u307e\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code>git range-diff<\/code>\u00a0\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3048\u3070\u3001\u3053\u308c\u3089\u306e\u30b3\u30df\u30c3\u30c8\u7bc4\u56f2\u304c\u3069\u306e\u3088\u3046\u306b\u7570\u306a\u308b\u306e\u304b\u3092\u8abf\u3079\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\uff01\u3053\u3053\u3067\u306f\u3001Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30b3\u30df\u30c3\u30c8\u306e\u4f8b\u3092\u4f7f\u3063\u3066\u00a0<code>v2.29.2<\/code>\u00a0\u30bf\u30b0\u306b\u30ea\u30d9\u30fc\u30b9\u3057\u3001\u5148\u982d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u5c11\u3057\u4fee\u6b63\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git checkout -f 8e86cf65816<\/span>\r\n$ <span class=\"pl-s1\">git rebase v2.29.2<\/span>\r\n$ <span class=\"pl-s1\"><span class=\"pl-c1\">echo<\/span> extra line <span class=\"pl-k\">&gt;&gt;<\/span>README.md<\/span>\r\n$ <span class=\"pl-s1\">git commit -a --amend -m <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>replaced commit message<span class=\"pl-pds\">\"<\/span><\/span><\/span>\r\n$ <span class=\"pl-s1\">git range-diff v2.29.2 8e86cf65816 HEAD<\/span>\r\n<span class=\"pl-c1\">1:  17e7dbbcbc = 1:  2aa8919906 sideband: avoid reporting incomplete sideband messages<\/span>\r\n<span class=\"pl-c1\">2:  8e86cf6581 ! 2:  e08fff1d8b sideband: report unhandled incomplete sideband messages as bugs<\/span>\r\n<span class=\"pl-c1\">    @@ Metadata<\/span>\r\n<span class=\"pl-c1\">     Author: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;<\/span>\r\n\r\n<span class=\"pl-c1\">      ## Commit message ##<\/span>\r\n<span class=\"pl-c1\">    -    sideband: report unhandled incomplete sideband messages as bugs<\/span>\r\n<span class=\"pl-c1\">    +    replaced commit message<\/span>\r\n\r\n<span class=\"pl-c1\">    -    It was pretty tricky to verify that incomplete sideband messages are<\/span>\r\n<span class=\"pl-c1\">    -    handled correctly by the `recv_sideband()`\/`demultiplex_sideband()`<\/span>\r\n<span class=\"pl-c1\">    -    code: they have to be flushed out at the end of the loop in<\/span>\r\n<span class=\"pl-c1\">    -    `recv_sideband()`, but the actual flushing is done by the<\/span>\r\n<span class=\"pl-c1\">    -    `demultiplex_sideband()` function (which therefore has to know somehow<\/span>\r\n<span class=\"pl-c1\">    -    that the loop will be done after it returns).<\/span>\r\n<span class=\"pl-c1\">    -<\/span>\r\n<span class=\"pl-c1\">    -    To catch future bugs where incomplete sideband messages might not be<\/span>\r\n<span class=\"pl-c1\">    -    shown by mistake, let's catch that condition and report a bug.<\/span>\r\n<span class=\"pl-c1\">    -<\/span>\r\n<span class=\"pl-c1\">    -    Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;<\/span>\r\n<span class=\"pl-c1\">    -    Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;<\/span>\r\n<span class=\"pl-c1\">    + ## README.md ##<\/span>\r\n<span class=\"pl-c1\">    +@@ README.md: and the name as (depending on your mood):<\/span>\r\n<span class=\"pl-c1\">    + [Documentation\/giteveryday.txt]: Documentation\/giteveryday.txt<\/span>\r\n<span class=\"pl-c1\">    + [Documentation\/gitcvs-migration.txt]: Documentation\/gitcvs-migration.txt<\/span>\r\n<span class=\"pl-c1\">    + [Documentation\/SubmittingPatches]: Documentation\/SubmittingPatches<\/span>\r\n<span class=\"pl-c1\">    ++extra line<\/span>\r\n\r\n<span class=\"pl-c1\">      ## pkt-line.c ##<\/span>\r\n<span class=\"pl-c1\">     @@ pkt-line.c: int recv_sideband(const char *me, int in_stream, int out)<\/span><\/pre>\n<\/div>\n<p><code>range-diff<\/code>\u00a0\u306e\u7d50\u679c\u3001\u30b3\u30df\u30c3\u30c8\u00a0<code>17e7dbbcbc<\/code>\u00a0\u3068\u00a0<code>2aa8919906<\/code>\u00a0\u304c\u300c\u7b49\u3057\u3044\u300d\u3068\u3055\u308c\u3066\u3044\u308b\u70b9\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u7b49\u3057\u3044\u3068\u306f\u3053\u308c\u3089\u4e8c\u3064\u306e\u30b3\u30df\u30c3\u30c8\u304c\u540c\u3058\u30d1\u30c3\u30c1\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002\u4e8c\u3064\u76ee\u306e\u30b3\u30df\u30c3\u30c8\u306e\u30da\u30a2\u306f\u7570\u306a\u308b\u3082\u306e\u3067\u3001\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5909\u66f4\u3055\u308c\u3001\u5143\u306e\u30b3\u30df\u30c3\u30c8\u306b\u306f\u306a\u304b\u3063\u305f\u00a0<code>README.md<\/code>\u00a0\u306e\u4fee\u6b63\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e8c\u3064\u306e\u30b3\u30df\u30c3\u30c8\u5217\u3092\u8ffd\u3063\u3066\u307f\u308b\u3068\u3001\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u304c\u3069\u306e\u3088\u3046\u306b\u6b8b\u3063\u3066\u3044\u308b\u304b\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3067\u306f\u00a0<code>v2.29.2<\/code>\u00a0\u30bf\u30b0\u304c\u5c65\u6b74\u306e\u4e09\u756a\u76ee\u306e\u30b3\u30df\u30c3\u30c8\u306b\u306a\u3063\u3066\u3044\u308b\u4e00\u65b9\u3067\u3001\u53e4\u3044\u30b3\u30df\u30c3\u30c8\u3067\u306f (\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308b)\u00a0<code>v2.28.0<\/code>\u00a0\u30bf\u30b0\u304c\u4e09\u756a\u76ee\u306e\u30b3\u30df\u30c3\u30c8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre>$ <span class=\"pl-s1\">git log --oneline -3 HEAD<\/span>\r\n<span class=\"pl-c1\">e08fff1d8b2 (HEAD) replaced commit message<\/span>\r\n<span class=\"pl-c1\">2aa89199065 sideband: avoid reporting incomplete sideband messages<\/span>\r\n<span class=\"pl-c1\">898f80736c7 (tag: v2.29.2) Git 2.29.2<\/span>\r\n\r\n$ <span class=\"pl-s1\">git log --oneline -3 8e86cf65816<\/span>\r\n<span class=\"pl-c1\">8e86cf65816 sideband: report unhandled incomplete sideband messages as bugs<\/span>\r\n<span class=\"pl-c1\">17e7dbbcbce sideband: avoid reporting incomplete sideband messages<\/span>\r\n<span class=\"pl-c1\">47ae905ffb9 (tag: v2.28.0) Git 2.28\r\n\r\n<\/span><\/pre>\n<\/div>\n<h3><a id=\"user-content-\u30b3\u30df\u30c3\u30c8\u306f\u5dee\u5206\u3067\u306a\u3044\u306e\u3067\u3042\u308c\u3070git-\u306f\u3069\u306e\u3088\u3046\u306b\u30ea\u30cd\u30fc\u30e0\u3092\u8ffd\u8de1\u3059\u308b\u306e\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%82%B3%E3%83%9F%E3%83%83%E3%83%88%E3%81%AF%E5%B7%AE%E5%88%86%E3%81%A7%E3%81%AA%E3%81%84%E3%81%AE%E3%81%A7%E3%81%82%E3%82%8C%E3%81%B0git-%E3%81%AF%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E3%83%AA%E3%83%8D%E3%83%BC%E3%83%A0%E3%82%92%E8%BF%BD%E8%B7%A1%E3%81%99%E3%82%8B%E3%81%AE\" aria-hidden=\"true\"><\/a>\u30b3\u30df\u30c3\u30c8\u306f\u5dee\u5206\u3067\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001Git \u306f\u3069\u306e\u3088\u3046\u306b\u30ea\u30cd\u30fc\u30e0\u3092\u8ffd\u8de1\u3059\u308b\u306e\uff1f<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u3092\u3088\u304f\u898b\u3066\u307f\u308b\u3068\u3001Git \u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30c7\u30fc\u30bf\u306e\u30b3\u30df\u30c3\u30c8\u9593\u306e\u5909\u66f4\u3092\u8ffd\u8de1\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u6c17\u3065\u3044\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u300c\u3069\u3046\u3084\u3063\u3066 Git \u306f\u30ea\u30cd\u30fc\u30e0\u304c\u8d77\u3053\u3063\u305f\u3053\u3068\u3092\u77e5\u3063\u3066\u3044\u308b\u306e\u3060\u308d\u3046\uff1f\u300d\u3068\u601d\u308f\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Git \u306f\u30ea\u30cd\u30fc\u30e0\u3092\u8ffd\u8de1\u3057\u307e\u305b\u3093\u3002Git \u306e\u5185\u90e8\u306b\u306f\u3001\u30b3\u30df\u30c3\u30c8\u3068\u305d\u306e\u89aa\u306e\u9593\u3067\u30ea\u30cd\u30fc\u30e0\u304c\u767a\u751f\u3057\u305f\u3068\u3044\u3046\u8a18\u9332\u3092\u4fdd\u5b58\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u4ee3\u308f\u308a\u3001Git \u306f\u52d5\u7684\u306b\u5dee\u5206\u3092\u8a08\u7b97\u3059\u308b\u969b\u306b\u30ea\u30cd\u30fc\u30e0\u3092\u691c\u51fa\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30ea\u30cd\u30fc\u30e0\u306e\u691c\u51fa\u306b\u306f\u3001\u53b3\u5bc6\u306a\u30ea\u30cd\u30fc\u30e0\uff08exact rename\uff09\u3068\u7de8\u96c6\u30ea\u30cd\u30fc\u30e0\uff08edit-rename\uff09\u306e\u4e8c\u6bb5\u968e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u5dee\u5206\u3092\u8a08\u7b97\u3057\u305f\u5f8c\u3001Git \u306f\u5dee\u5206\u306e\u5185\u90e8\u30e2\u30c7\u30eb\u3092\u691c\u67fb\u3057\u3066\u3001\u3069\u306e\u30d1\u30b9\u304c\u8ffd\u52a0\u3055\u308c\u305f\u308a\u524a\u9664\u3055\u308c\u305f\u308a\u3057\u305f\u304b\u3092\u8abf\u3079\u307e\u3059\u3002\u3042\u308b\u5834\u6240\u304b\u3089\u5225\u306e\u5834\u6240\u306b\u79fb\u52d5\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u5f53\u7136\u3001\u6700\u521d\u306e\u5834\u6240\u3067\u306f\u524a\u9664\u3055\u308c\u3001\u6b21\u306e\u5834\u6240\u3067\u306f\u8ffd\u52a0\u3055\u308c\u305f\u3082\u306e\u3068\u3057\u3066\u73fe\u308c\u307e\u3059\u3002Git \u306f\u3053\u308c\u3089\u306e\u8ffd\u52a0\u3068\u524a\u9664\u3092<a href=\"https:\/\/en.wikipedia.org\/wiki\/Matching_(graph_theory)\" rel=\"nofollow\">\u30de\u30c3\u30c1<\/a>\u3057\u3066\u3001\u63a8\u6e2c\u3055\u308c\u308b\u30ea\u30cd\u30fc\u30e0\u306e\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30de\u30c3\u30c1\u30f3\u30b0\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u6700\u521d\u306e\u6bb5\u968e\u3067\u306f\u3001\u8ffd\u52a0\u3068\u524a\u9664\u304c\u884c\u308f\u308c\u305f\u30d1\u30b9\u306e OID \u3092\u8abf\u3079\u3001\u5b8c\u5168\u306b\u4e00\u81f4\u3059\u308b\u3082\u306e\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u5b8c\u5168\u4e00\u81f4\u3057\u305f\u30d1\u30b9\u3092\u30da\u30a2\u3068\u3057\u3066\u899a\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u7b2c\u4e8c\u6bb5\u968e\u306f\u30b3\u30b9\u30c8\u306e\u639b\u304b\u308b\u90e8\u5206\u3067\u3059: \u30ea\u30cd\u30fc\u30e0\u3055\u308c\u3066\u304b\u3064\u7de8\u96c6\u304c\u884c\u308f\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u3069\u3046\u3084\u3063\u3066\u691c\u51fa\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1fGit \u306f\u8ffd\u52a0\u3055\u308c\u305f\u5404\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u3001\u524a\u9664\u3055\u308c\u305f\u5404\u30d5\u30a1\u30a4\u30eb\u3068\u306e\u6bd4\u8f03\u3092\u884c\u3044\u3001\u305d\u308c\u3089\u306e\u9593\u3067\u306e\u5171\u901a\u306e\u884c\u306e\u5272\u5408\u3092\u00a0<strong>\u985e\u4f3c\u5ea6<\/strong>\u00a0\u3068\u3057\u3066\u8a08\u7b97\u3059\u308b\u3068\u3044\u3046\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u5171\u901a\u306e\u884c\u304c 50% \u3092\u8d85\u3048\u308b\u3082\u306e\u306f\u7de8\u96c6\u30ea\u30cd\u30fc\u30e0\u306e\u53ef\u80fd\u6027\u304c\u3042\u308b\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u306f\u3001\u985e\u4f3c\u5ea6\u304c\u6700\u5927\u306e\u3082\u306e\u3092\u898b\u3064\u3051\u308b\u307e\u3067\u3001\u30da\u30a2\u306e\u6bd4\u8f03\u3092\u7d9a\u3051\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u554f\u984c\u306b\u6c17\u4ed8\u304d\u307e\u3057\u305f\u304b\uff1f\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u00a0<code>A * D<\/code>\u00a0\u56de\u5dee\u5206\u8a08\u7b97\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u00a0<code>A<\/code>\u00a0\u306f\u8ffd\u52a0\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u6570\u3067\u3001\u00a0<code>D<\/code>\u00a0\u306f\u524a\u9664\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u6570\u3067\u3059\u3002\u3053\u306e\u51e6\u7406\u306f\u4e8c\u6b21\u95a2\u6570\u3067\u3059\uff01\u30ea\u30cd\u30fc\u30e0\u306e\u691c\u51fa\u306e\u8a08\u7b97\u304c\u9577\u304f\u306a\u308b\u306e\u3092\u907f\u3051\u308b\u305f\u3081\u3001\u00a0<code>A + D<\/code>\u00a0\u306e\u5024\u304c\u5185\u90e8\u7684\u306a\u5236\u9650\u5024\u3088\u308a\u3082\u5927\u304d\u3044\u5834\u5408\u306f\u3001Git \u306f\u7de8\u96c6\u30ea\u30cd\u30fc\u30e0\u306e\u691c\u51fa\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u307e\u3059\u3002\u3053\u306e\u5236\u9650\u5024\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u00a0<a href=\"https:\/\/git-scm.com\/docs\/git-config#Documentation\/git-config.txt-diffrenameLimit\" rel=\"nofollow\"><code>diff.renameLimit<\/code>\u00a0\u30aa\u30d7\u30b7\u30e7\u30f3<\/a>\u00a0\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u00a0<code>diff.renames<\/code>\u00a0\u306e\u8a2d\u5b9a\u3092\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u5b8c\u5168\u306b\u56de\u907f\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u79c1\u306f Git \u306e\u30ea\u30cd\u30fc\u30e0\u691c\u51fa\u3092\u610f\u8b58\u3057\u3066\u3001\u81ea\u5206\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f7f\u3063\u3066\u307f\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u79c1\u306f\u00a0<a href=\"https:\/\/github.com\/microsoft\/vfsforgit\">VFS for Git<\/a>\u00a0\u3092\u30d5\u30a9\u30fc\u30af\u3057\u3066\u00a0<a href=\"https:\/\/github.com\/microsoft\/scalar\">Scalar<\/a>\u00a0\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u30b3\u30fc\u30c9\u306e\u591a\u304f\u3092\u518d\u5229\u7528\u3059\u308b\u4e00\u65b9\u3067\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u3092\u5927\u5e45\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5c65\u6b74\u3092 VFS for Git \u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u307e\u3067\u8ffd\u8de1\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u4e8c\u3064\u306e\u624b\u9806\u3067\u30ea\u30d5\u30a1\u30af\u30bf\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li><a href=\"https:\/\/github.com\/microsoft\/scalar\/commit\/fb3a2a3635daf4257d476b43677fc4cd8bdde53f\">\u30d6\u30ed\u30d6\u3092\u5909\u66f4\u305b\u305a\u306b\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u3002<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/microsoft\/scalar\/commit\/90e8c1bd69a204dfa2ac8fcd26b674bfd98227b9\">\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u305b\u305a\u306b\u30d6\u30ed\u30d6\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u3002<\/a><\/li>\n<\/ol>\n<p>\u3053\u306e\u4e8c\u3064\u306e\u624b\u9806\u306b\u3088\u308a\u3001<code>git log --follow -- &lt;path&gt;<\/code>\u00a0\u3092\u4f7f\u3063\u3066\u3001\u30ea\u30cd\u30fc\u30e0\u524d\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5c65\u6b74\u3092\u3059\u3050\u306b\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre lang=\"ShellSessioon\"><code>$ git log --oneline --follow -- Scalar\/CommandLine\/ScalarVerb.cs\r\n4183579d console: remove progress spinners from all commands\r\n5910f26c ScalarVerb: extract Git version check\r\n...\r\n9f402b5a Re-insert some important instances of GVFS\r\n90e8c1bd [REPLACE] Replace old name in all files\r\nfb3a2a36 [RENAME] Rename all files\r\ncedeeaa3 Remove dead GVFSLock and GitStatusCache code\r\na67ca851 Remove more dead hooks code\r\n...\r\n<\/code><\/pre>\n<p>\u51fa\u529b\u3092\u7701\u7565\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u6700\u5f8c\u306e\u4e8c\u3064\u306e\u30b3\u30df\u30c3\u30c8\u306f\u5b9f\u969b\u306b\u306f\u00a0<code>Scalar\/CommandLine\/ScalarVerb.cs<\/code>\u00a0\u306b\u5bfe\u5fdc\u3059\u308b\u30d1\u30b9\u3092\u6301\u3063\u3066\u304a\u3089\u305a\u3001\u4ee3\u308f\u308a\u306b\u4ee5\u524d\u306e\u30d1\u30b9\u3067\u3042\u308b\u00a0<code>GVSF\/GVFS\/CommandLine\/GVFSVerb.cs<\/code>\u00a0\u3092\u8ffd\u8de1\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u30b3\u30df\u30c3\u30c8\u00a0<code>fb3a2a36 [RENAME] Rename all files<\/code>\u00a0\u3067\u306e\u53b3\u5bc6\u306a\u30ea\u30cd\u30fc\u30e0\u3092 Git \u304c\u8a8d\u8b58\u3057\u305f\u304b\u3089\u3067\u3059\u3002<\/p>\n<h3><a id=\"user-content-\u3082\u3046\u9a19\u3055\u308c\u306a\u3044\u305e\" class=\"anchor\" href=\"https:\/\/github.com\/github\/Japan\/blob\/main\/articles\/2020-12-16-commits-are-not-diffs-ja.md#%E3%82%82%E3%81%86%E9%A8%99%E3%81%95%E3%82%8C%E3%81%AA%E3%81%84%E3%81%9E\" aria-hidden=\"true\"><\/a>\u3082\u3046\u9a19\u3055\u308c\u306a\u3044\u305e\uff01<\/h3>\n<p>\u3053\u308c\u3067\u3001\u00a0<strong>\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u3063\u3066\u5dee\u5206\u3067\u306f\u306a\u3044<\/strong>\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u306d\uff01\u3053\u308c\u3092\u7406\u89e3\u3057\u3066\u3044\u308c\u3070\u3001Git \u3067\u306e\u4f5c\u696d\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001Git \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u306e\u6df1\u3044\u77e5\u8b58\u304c\u8eab\u306b\u3064\u304d\u307e\u3057\u305f\u3002\u3053\u306e\u77e5\u8b58\u3092\u4f7f\u3063\u3066\u3001Git \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u305f\u308a\u3001\u30c1\u30fc\u30e0\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u6c7a\u3081\u305f\u308a\u3059\u308b\u30b9\u30ad\u30eb\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u5f8c\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u3067\u306f\u3001\u3053\u306e\u77e5\u8b58\u3092\u4f7f\u3063\u3066\u3055\u307e\u3056\u307e\u306a Git \u30af\u30ed\u30fc\u30f3\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3084\u3001\u3084\u308a\u3068\u308a\u304c\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u6e1b\u3089\u3059\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304f\u4e88\u5b9a\u3067\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git \u306f\u7d1b\u3089\u308f\u3057\u3044\u3068\u3044\u3046\u8a55\u5224\u3067\u3059\u3002\u7528\u8a9e\u3084\u8a00\u3044\u56de\u3057\u304c\u610f\u5473\u3059\u308b\u3082\u306e\u3068\u3001\u305d\u3053\u304b\u3089\u60f3\u50cf\u3059\u308b\u6319\u52d5\u304c\u9055\u3063\u3066\u30e6\u30fc\u30b6\u30fc\u304c\u6df7\u4e71\u3059\u308b\u3068\u8a00\u308f\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001git cherry-pick\u00a0\u3084\u00a0git rebase\u00a0\u306e\u3088\u3046\u306a\u300c\u5c65\u6b74\u3092\u66f8\u304d\u63db\u3048\u308b\u300d\u30b3\u30de\u30f3\u30c9\u306b\u6700\u3082\u9855\u8457\u3067\u3059\u3002\u79c1\u306e\u7d4c\u9a13\u3067\u306f\u3001\u3053\u306e\u6df7\u4e71\u306e\u6839\u672c\u7684\u306a\u539f\u56e0\u306f\u3001\u30b3\u30df\u30c3\u30c8\u306f\u00a0\u5dee\u5206\u00a0\u3067\u3042\u308a\u9806\u756a\u3092\u5165\u308c\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u89e3\u91c8\u306b\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u3063\u3066\u3001\u5dee\u5206\u3067\u306f\u3042\u308a\u307e\u305b\u3093!<\/p>\n","protected":false},"author":1762,"featured_media":2881,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false},"categories":[31],"tags":[],"coauthors":[],"class_list":["post-2873","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engineering"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044 - GitHub\u30d6\u30ed\u30b0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044\" \/>\n<meta property=\"og:description\" content=\"Git \u306f\u7d1b\u3089\u308f\u3057\u3044\u3068\u3044\u3046\u8a55\u5224\u3067\u3059\u3002\u7528\u8a9e\u3084\u8a00\u3044\u56de\u3057\u304c\u610f\u5473\u3059\u308b\u3082\u306e\u3068\u3001\u305d\u3053\u304b\u3089\u60f3\u50cf\u3059\u308b\u6319\u52d5\u304c\u9055\u3063\u3066\u30e6\u30fc\u30b6\u30fc\u304c\u6df7\u4e71\u3059\u308b\u3068\u8a00\u308f\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001git cherry-pick\u00a0\u3084\u00a0git rebase\u00a0\u306e\u3088\u3046\u306a\u300c\u5c65\u6b74\u3092\u66f8\u304d\u63db\u3048\u308b\u300d\u30b3\u30de\u30f3\u30c9\u306b\u6700\u3082\u9855\u8457\u3067\u3059\u3002\u79c1\u306e\u7d4c\u9a13\u3067\u306f\u3001\u3053\u306e\u6df7\u4e71\u306e\u6839\u672c\u7684\u306a\u539f\u56e0\u306f\u3001\u30b3\u30df\u30c3\u30c8\u306f\u00a0\u5dee\u5206\u00a0\u3067\u3042\u308a\u9806\u756a\u3092\u5165\u308c\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u89e3\u91c8\u306b\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u3063\u3066\u3001\u5dee\u5206\u3067\u306f\u3042\u308a\u307e\u305b\u3093!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/\" \/>\n<meta property=\"og:site_name\" content=\"GitHub\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-06T08:15:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/commits-are-snapshots-not-diffs.png?fit=1200%2C630\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"derrickstolee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"derrickstolee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/\"},\"author\":{\"name\":\"derrickstolee\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/aa5162f0853e5f4231779c9658ce643a\"},\"headline\":\"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044\",\"datePublished\":\"2021-01-06T08:15:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/\"},\"wordCount\":86,\"image\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/01\\\/commits-are-snapshots-not-diffs.png?fit=1200%2C630\",\"articleSection\":[\"Engineering\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/\",\"name\":\"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044 - GitHub\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/01\\\/commits-are-snapshots-not-diffs.png?fit=1200%2C630\",\"datePublished\":\"2021-01-06T08:15:24+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/aa5162f0853e5f4231779c9658ce643a\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/01\\\/commits-are-snapshots-not-diffs.png?fit=1200%2C630\",\"contentUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/01\\\/commits-are-snapshots-not-diffs.png?fit=1200%2C630\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-01-06-commits-are-snapshots-not-diffs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/github.blog\\\/jp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#website\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/\",\"name\":\"GitHub\u30d6\u30ed\u30b0\",\"description\":\"\u88fd\u54c1\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3084\u958b\u767a\u306b\u95a2\u3059\u308b\u30a2\u30a4\u30c7\u30a3\u30a2\u3084\u30a4\u30f3\u30b9\u30d4\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u7686\u3055\u3093\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u767a\u4fe1\u3057\u307e\u3059\u3002\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/github.blog\\\/jp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/aa5162f0853e5f4231779c9658ce643a\",\"name\":\"derrickstolee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e51548cb18978a0193d571752a26fcfc8e19dd451354078700c44c9d3b6e2db1?s=96&d=mm&r=ga1cf46545ac49c2c5781295ceaf469c5\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e51548cb18978a0193d571752a26fcfc8e19dd451354078700c44c9d3b6e2db1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e51548cb18978a0193d571752a26fcfc8e19dd451354078700c44c9d3b6e2db1?s=96&d=mm&r=g\",\"caption\":\"derrickstolee\"},\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/author\\\/derrickstolee\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044 - GitHub\u30d6\u30ed\u30b0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/","og_locale":"en_US","og_type":"article","og_title":"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044","og_description":"Git \u306f\u7d1b\u3089\u308f\u3057\u3044\u3068\u3044\u3046\u8a55\u5224\u3067\u3059\u3002\u7528\u8a9e\u3084\u8a00\u3044\u56de\u3057\u304c\u610f\u5473\u3059\u308b\u3082\u306e\u3068\u3001\u305d\u3053\u304b\u3089\u60f3\u50cf\u3059\u308b\u6319\u52d5\u304c\u9055\u3063\u3066\u30e6\u30fc\u30b6\u30fc\u304c\u6df7\u4e71\u3059\u308b\u3068\u8a00\u308f\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001git cherry-pick\u00a0\u3084\u00a0git rebase\u00a0\u306e\u3088\u3046\u306a\u300c\u5c65\u6b74\u3092\u66f8\u304d\u63db\u3048\u308b\u300d\u30b3\u30de\u30f3\u30c9\u306b\u6700\u3082\u9855\u8457\u3067\u3059\u3002\u79c1\u306e\u7d4c\u9a13\u3067\u306f\u3001\u3053\u306e\u6df7\u4e71\u306e\u6839\u672c\u7684\u306a\u539f\u56e0\u306f\u3001\u30b3\u30df\u30c3\u30c8\u306f\u00a0\u5dee\u5206\u00a0\u3067\u3042\u308a\u9806\u756a\u3092\u5165\u308c\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u89e3\u91c8\u306b\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u3063\u3066\u3001\u5dee\u5206\u3067\u306f\u3042\u308a\u307e\u305b\u3093!","og_url":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/","og_site_name":"GitHub\u30d6\u30ed\u30b0","article_published_time":"2021-01-06T08:15:24+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/commits-are-snapshots-not-diffs.png?fit=1200%2C630","type":"image\/png"}],"author":"derrickstolee","twitter_card":"summary_large_image","twitter_misc":{"Written by":"derrickstolee","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/#article","isPartOf":{"@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/"},"author":{"name":"derrickstolee","@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/aa5162f0853e5f4231779c9658ce643a"},"headline":"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044","datePublished":"2021-01-06T08:15:24+00:00","mainEntityOfPage":{"@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/"},"wordCount":86,"image":{"@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/#primaryimage"},"thumbnailUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/commits-are-snapshots-not-diffs.png?fit=1200%2C630","articleSection":["Engineering"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/","url":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/","name":"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044 - GitHub\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/github.blog\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/#primaryimage"},"image":{"@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/#primaryimage"},"thumbnailUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/commits-are-snapshots-not-diffs.png?fit=1200%2C630","datePublished":"2021-01-06T08:15:24+00:00","author":{"@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/aa5162f0853e5f4231779c9658ce643a"},"breadcrumb":{"@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/#primaryimage","url":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/commits-are-snapshots-not-diffs.png?fit=1200%2C630","contentUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/commits-are-snapshots-not-diffs.png?fit=1200%2C630","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/github.blog\/jp\/2021-01-06-commits-are-snapshots-not-diffs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/github.blog\/jp\/"},{"@type":"ListItem","position":2,"name":"\u30b3\u30df\u30c3\u30c8\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308a\u5dee\u5206\u3067\u306f\u306a\u3044"}]},{"@type":"WebSite","@id":"https:\/\/github.blog\/jp\/#website","url":"https:\/\/github.blog\/jp\/","name":"GitHub\u30d6\u30ed\u30b0","description":"\u88fd\u54c1\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3084\u958b\u767a\u306b\u95a2\u3059\u308b\u30a2\u30a4\u30c7\u30a3\u30a2\u3084\u30a4\u30f3\u30b9\u30d4\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u7686\u3055\u3093\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u767a\u4fe1\u3057\u307e\u3059\u3002","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/github.blog\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/aa5162f0853e5f4231779c9658ce643a","name":"derrickstolee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e51548cb18978a0193d571752a26fcfc8e19dd451354078700c44c9d3b6e2db1?s=96&d=mm&r=ga1cf46545ac49c2c5781295ceaf469c5","url":"https:\/\/secure.gravatar.com\/avatar\/e51548cb18978a0193d571752a26fcfc8e19dd451354078700c44c9d3b6e2db1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e51548cb18978a0193d571752a26fcfc8e19dd451354078700c44c9d3b6e2db1?s=96&d=mm&r=g","caption":"derrickstolee"},"url":"https:\/\/github.blog\/jp\/author\/derrickstolee\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/01\/commits-are-snapshots-not-diffs.png?fit=1200%2C630","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pasZHI-Kl","_links":{"self":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/2873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/users\/1762"}],"replies":[{"embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/comments?post=2873"}],"version-history":[{"count":6,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/2873\/revisions"}],"predecessor-version":[{"id":2886,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/2873\/revisions\/2886"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/media\/2881"}],"wp:attachment":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/media?parent=2873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/categories?post=2873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/tags?post=2873"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/coauthors?post=2873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}