{"id":12094,"date":"2024-02-27T15:41:45","date_gmt":"2024-02-27T06:41:45","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=12094"},"modified":"2024-02-27T15:41:45","modified_gmt":"2024-02-27T06:41:45","slug":"git%e3%81%ae%e9%9a%85%e3%81%a3%e3%81%93-tree-ish%e3%81%a3%e3%81%a6%e4%bd%95","status":"publish","type":"post","link":"https:\/\/test.ecomottblog.com\/?p=12094","title":{"rendered":"Git\u306e\u9685\u3063\u3053 &#8211; Tree-ish\u3063\u3066\u4f55?"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001SJC\u5171\u540c\u63a8\u9032\u5ba4\u306e\u5317\u8c37\u3067\u3059\u3002<\/p>\n<p>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u306b\u643a\u308f\u3063\u3066\u3044\u308b\u7686\u3055\u3093\u306f\u666e\u6bb5Git\u3092\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u304b\u3002Git\u3063\u3066\u305f\u304f\u3055\u3093\u306e\u30b3\u30de\u30f3\u30c9\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u3001\u3068\u3066\u3082\u5168\u90e8\u306f\u628a\u63e1\u3057\u304d\u308c\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u4e2d\u3067\u958b\u767a\u306b\u5fc5\u8981\u306a\u4f7f\u3044\u65b9\u3092\u899a\u3048\u3066\u4f7f\u3046\u3068\u3044\u3046\u30b9\u30bf\u30a4\u30eb\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u3066\u3044\u308b\u3068\u3053\u308c\u306f\u4f55\u3060\u308d\u3046\u3068\u601d\u3046\u3068\u3053\u308d\u306f\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u305d\u306e\u4e00\u3064\u3060\u3051\u3001\u53d6\u308a\u4e0a\u3052\u3066\u307f\u307e\u3059\u3002\u5b9f\u7528\u3068\u3057\u3066\u5f79\u306b\u7acb\u3064\u3068\u3044\u3046\u307b\u3069\u306e\u60c5\u5831\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u8208\u5473\u3092\u6301\u305f\u308c\u305f\u65b9\u306f\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><!--more--><\/p>\n<h2>Tree-ish<\/h2>\n<p>\u53d6\u308a\u4e0a\u3052\u308b\u306e\u306f&#8221;tree-ish&#8221; \u3067\u3059\u3002\u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u3068\u3057\u3066\u6240\u3005\u3067\u51fa\u3066\u304d\u307e\u3059\u3002\u5358\u8a9e\u306b &#8220;-ish&#8221; \u304c\u3064\u304f\u3068\u300c\u2026\u3063\u307d\u3044\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002&#8221;Pink-ish&#8221; \u3060\u3068\u300c\u30d4\u30f3\u30af\u304c\u304b\u3063\u305f\u300d\u307f\u305f\u3044\u306b\u3002\u306a\u306e\u3067 &#8220;tree-ish&#8221;\u306f\u300c\u30c4\u30ea\u30fc\u3063\u307d\u3044\u300d\u3002\u305d\u3046\u3060\u3068\u3059\u308b\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30c4\u30ea\u30fc\u304b\u306a\u3063\u3066\u601d\u3044\u307e\u3059\u3088\u306d\u3002<\/p>\n<p>\u4e00\u4f8b\u3068\u3057\u3066 git checkout \u306e SYNOPSIS (<a href=\"https:\/\/git-scm.com\/docs\/git-checkout\">https:\/\/git-scm.com\/docs\/git-checkout<\/a>) \u3092\u898b\u3066\u307f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30015\u756a\u76ee\u30016\u756a\u76ee\u306e\u7528\u6cd5\u306b tree-ish \u304c\u73fe\u308c\u3066\u3044\u307e\u3059\u3002\u3042\u3068\u3001\u6642\u3005\u304a\u4e16\u8a71\u306b\u306a\u308b git reset \u306b\u3082\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"\">git checkout [-q] [-f] [-m] [&lt;branch&gt;]\ngit checkout [-q] [-f] [-m] --detach [&lt;branch&gt;]\ngit checkout [-q] [-f] [-m] [--detach] &lt;commit&gt;\ngit checkout [-q] [-f] [-m] [[-b|-B|--orphan] &lt;new-branch&gt;] [&lt;start-point&gt;]\ngit checkout [-f] <strong>&lt;tree-ish&gt;<\/strong> [--] &lt;pathspec&gt;\u2026\ngit checkout [-f] <strong>&lt;tree-ish&gt;<\/strong> --pathspec-from-file=&lt;file&gt; [--pathspec-file-nul]\ngit checkout [-f|--ours|--theirs|-m|--conflict=&lt;style&gt;] [--] &lt;pathspec&gt;\u2026\ngit checkout [-f|--ours|--theirs|-m|--conflict=&lt;style&gt;] --pathspec-from-file=&lt;file&gt; [--pathspec-file-nul]\ngit checkout (-p|--patch) [<strong>&lt;tree-ish&gt;<\/strong>] [--] [&lt;pathspec&gt;\u2026]<\/pre>\n<p>\u3053\u306e5\u756a\u76ee\u30016\u756a\u76ee\u306e\u6a5f\u80fd\u306e\u8aac\u660e\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059<\/p>\n<pre class=\"\">pathspec\u306b\u30de\u30c3\u30c1\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3002\n&lt;tree-ish&gt;(\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u306f\u30b3\u30df\u30c3\u30c8)\u304c\u4e0e\u3048\u3089\u308c\u306a\u3051\u308c\u3070\u3001\u30ef\u30fc\u30ad\u30f3\u30b0\u30c4\u30ea\u30fc\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3067\u4e0a\u66f8\u304d\u3059\u308b\u3002\n&lt;tree-ish&gt;\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u30ef\u30fc\u30ad\u30f3\u30b0\u30c4\u30ea\u30fc\u3092&lt;tree-ish&gt;\u306e\u5185\u5bb9\u3067\u4e0a\u66f8\u304d\u3059\u308b\u3002\n<\/pre>\n<p>tree-ish \u306b\u306f\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u306f\u30b3\u30df\u30c3\u30c8\u3092\u793a\u3059\u3082\u306e\u3092\u6307\u5b9a\u3059\u308b\u306e\u3060\u3001\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3061\u3087\u3063\u3068\u4e0d\u601d\u8b70\u3067\u3059\u3002\u305d\u3082\u305d\u3082\u306a\u305c &#8220;tree-ish&#8221; (\u30c4\u30ea\u30fc\u306e\u3088\u3046\u306a\u3082\u306e) \u3068\u3044\u3063\u305f\u8a00\u3044\u56de\u3057\u3092\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u307e\u305f\u3001\u30b3\u30df\u30c3\u30c8\u3067\u306a\u3044\u3082\u306e\u3082\u3042\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u307e\u305a\u898b\u308b\u3079\u304d\u306f\u3082\u3061\u308d\u3093 Git \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u7528\u8a9e\u96c6\u306e\u4e2d\u306e &#8220;tree-ish&#8221; \u306e\u8aac\u660e\u3067\u3057\u3087\u3046\u3002\u898b\u3066\u307f\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059 (<a href=\"https:\/\/git-scm.com\/docs\/gitglossary\/ja#def_tree-ish\">https:\/\/git-scm.com\/docs\/gitglossary\/ja#def_tree-ish<\/a>)\uff1a<\/p>\n<pre class=\"\">\u30c4\u30ea\u30fc\u306e\u6027\u8cea\u3092\u6301\u3064\u3082\u306e (tree-ish (also treeish))\n  \u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u518d\u5e30\u7684\u306b \u53c2\u7167\u5916\u3057 \u3067\u304d\u308b \u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u307e\u305f\u306f \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3002\n  \u30b3\u30df\u30c3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u306e\u53c2\u7167\u5148\u3092\u5c55\u958b\u3059\u308b\u3068\u3001 \u30ea\u30d3\u30b8\u30e7\u30f3 \u306e\u6700\u4e0a\u4f4d \u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u306b\u5bfe\u5fdc\n  \u3059\u308b\u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3059\u3079\u3066\u30c4\u30ea\u30fc\u306e\u6027\u8cea\u3092\u6301\u3064\u3082\u306e\u3067\u3059:\n  \u30b3\u30df\u30c3\u30c8\u306e\u6027\u8cea\u3092\u6301\u3064\u3082\u306e\u3001 \u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3059 \u30bf\u30b0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\n  \u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3059\u30bf\u30b0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3059\u30bf\u30b0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u3069\u3002\n<\/pre>\n<p>\u6700\u521d\u306e\u6587\u304c\u5b9a\u7fa9\u306e\u3088\u3046\u3067\u3059\u304c\u3001\u306a\u3093\u3060\u304b\u96e3\u3057\u3044\u3067\u3059\u306d\u3002\u51fa\u3066\u304d\u3066\u3044\u308b\u7528\u8a9e\u306b\u3064\u3044\u3066\u4e00\u3064\u4e8c\u3064\u898b\u3066\u884c\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h2>\n<p>\u5b9f\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f Git\u306e\u5185\u90e8\u69cb\u9020\u306e\u57fa\u672c\u3067\u3059\u3002\u3044\u308d\u3093\u306a\u3068\u3053\u308d\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u3056\u3063\u304f\u308a\u3068\u3060\u3051\u89e6\u308c\u307e\u3059\u304c\u3001\u8a73\u3057\u304f\u306f\u3053\u306e\u3042\u305f\u308a\u3092\u53c2\u7167\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/git-scm.com\/book\/ja\/v2\/Git%E3%81%AE%E5%86%85%E5%81%B4-Git%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88\">https:\/\/git-scm.com\/book\/ja\/v2\/Git%E3%81%AE%E5%86%85%E5%81%B4-Git%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88<\/a><\/li>\n<li><a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Git-Objects\">https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Git-Objects<\/a><\/li>\n<\/ul>\n<p>\u3056\u3063\u304f\u308a\u3044\u3046\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u3082\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u30ea\u30d3\u30b8\u30e7\u30f3\u3082\u3001\u30b3\u30df\u30c3\u30c8\u3082\u3001\u30bf\u30b0\u3082\u307f\u3093\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e1\u7a2e\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306b SHA ID\u304c\u3064\u3044\u3066\u3044\u3066\u3001\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u7167\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u306e\u30b5\u30a4\u30c8\u304b\u3089\u306e\u56f3\u3092\u8cbc\u4ed8\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12165\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/02\/data-model-2-300x222.png\" alt=\"\" width=\"300\" height=\"222\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-2-300x222.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-2-768x569.png 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-2-289x214.png 289w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-2-282x209.png 282w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-2.png 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>&nbsp; &nbsp;&nbsp;<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12167\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/02\/data-model-3-300x223.png\" alt=\"\" width=\"300\" height=\"223\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-3-300x223.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-3-768x571.png 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-3-288x214.png 288w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-3-282x210.png 282w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/02\/data-model-3.png 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>(\u51fa\u5178\uff1aPro Git book,&nbsp;https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Git-Objects)<\/p>\n<p>\u3072\u3068\u3064\u76ee\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u30d5\u30a1\u30a4\u30eb\u30c4\u30ea\u30fc\u3092\u69cb\u6210\u3057\u3066\u3044\u308b\u56f3\u3001\u4e8c\u3064\u76ee\u306f\u305d\u308c\u304c\u30b3\u30df\u30c3\u30c8\u306b\u3088\u3063\u3066\u66f4\u65b0\u3055\u308c\u305f\u72b6\u614b\u306e\u56f3\u3067\u3059\u3002\u3053\u306e\u4e2d\u306e\u305d\u308c\u305e\u308c\u306e\u7bb1\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\uff1a<\/p>\n<ul>\n<li>\u30b0\u30ec\u30fc\uff1a\u30d5\u30a1\u30a4\u30eb\u306b\u76f8\u5f53\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 = blob\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/li>\n<li>\u7dd1\uff1a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u76f8\u5f53\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 = \u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/li>\n<li>\u30aa\u30ec\u30f3\u30b8\uff1a\u30b3\u30df\u30c3\u30c8\u306b\u76f8\u5f53\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 = \u30b3\u30df\u30c3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/li>\n<\/ul>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u7dd1\u306e\u56db\u89d2\u304c\u3044\u308f\u3086\u308b\u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u76f8\u5f53\u3059\u308b\u30c7\u30fc\u30bf\u3067\u3059\u3002\u30ea\u30d3\u30b8\u30e7\u30f3\u304c\u9055\u3046\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3082\u9055\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001Tree-ish \u306e\u30c4\u30ea\u30fc\u306f\u304d\u3063\u3068\u3053\u306e\u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u306a\u3068\u898b\u5f53\u304c\u3064\u304d\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u7167\u5916\u3057<\/h2>\n<p>Tree-ish \u306e\u8aac\u660e\u306b\u51fa\u3066\u304f\u308b\u3053\u306e\u7528\u8a9e\u304c\u3072\u3068\u3064\u6df7\u4e71\u306e\u5143\u3067\u3042\u308b\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u82f1\u8a9e\u3067\u306f &#8220;dereference&#8221; \u3067\u3059\u3002\u540c\u3058\u304f\u7528\u8a9e\u96c6\u3092\u898b\u3066\u307f\u307e\u3059 ( <a href=\"https:\/\/git-scm.com\/docs\/gitglossary\/ja#def_dereference\">https:\/\/git-scm.com\/docs\/gitglossary\/ja#def_dereference<\/a>) \u3068\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u65e5\u672c\u8a9e\u8a33\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u8aac\u660e\u3092\u8aad\u3080\u3068\u3001dereference \u306f\u6b21\u306e\u3088\u3046\u306a\u610f\u5473\u306b\u3068\u308c\u307e\u3059\uff1a<\/p>\n<ul>\n<li>\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u53c2\u7167\u3001\u30bf\u30b0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u30b3\u30df\u30c3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u3001(\u53c2\u7167\u3092\u8fbf\u3063\u3066)\u305d\u308c\u3089\u304c\u6307\u3059\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068<\/li>\n<\/ul>\n<p>\u53c2\u7167\u5148\u306e\u305d\u306e\u307e\u305f\u53c2\u7167\u5148\u3068\u3044\u3063\u305f\u5177\u5408\u306b\u518d\u5e30\u7684\u306b\u8fbf\u308b\u3053\u3068\u304c\u3042\u308a\u3001\u305d\u306e\u5834\u5408\u4e00\u3064\u53c2\u7167\u3092\u8fbf\u308b\u3054\u3068\u306b\u6b8b\u308a\u306e\u53c2\u7167\u304c\u6e1b\u3063\u3066\u3044\u304f\u306e\u3067\u3001\u300cdereference=\u53c2\u7167\u5916\u3057\u300d\u3068\u547c\u3076\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>Tree-ish<\/h2>\n<p>\u3067\u306f\u672c\u984c\u306e Tree-ish \u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<p>tree-ish \u306e\u8aac\u660e\u306e\u539f\u6587 ( <a href=\"https:\/\/git-scm.com\/docs\/gitglossary#def_tree-ish\">https:\/\/git-scm.com\/docs\/gitglossary#def_tree-ish<\/a>) \u306b\u623b\u3063\u3066\u307f\u307e\u3059\u3002\u6700\u521d\u306e1\u6587\uff1a<\/p>\n<ul>\n<li>A tree object or an object that can be recursively dereferenced to a tree object.<\/li>\n<\/ul>\n<p>\u7d50\u5c40\u3053\u308c\u304c tree-ish \u306e\u8aac\u660e\u306a\u306e\u3067\u3059\u304c\u3001\u4e0a\u8a18\u3067\u898b\u3066\u304d\u305f\u5185\u5bb9\u3092\u8e0f\u307e\u3048\u3066\u5c11\u3057\u7c21\u7565\u5316\u3057\u3066\u8a33\u3059\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\uff1a<\/p>\n<ul>\n<li><strong>tree-ish \u306f\u53c2\u7167\u3092\u8fbf\u308b\u3053\u3068\u3067\u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5f97\u3089\u308c\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u3053\u3068<\/strong><\/li>\n<\/ul>\n<p>\u305d\u3057\u3066 tree-ish \u3092\u5f15\u6570\u306b\u53d6\u308b git \u30b3\u30de\u30f3\u30c9\u306f\u3001\u305d\u306e tree-ish \u304b\u3089\u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u307e\u3067\u8fbf\u3063\u3066\u3001\u305d\u306e\u30c4\u30ea\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u51e6\u7406\u306e\u5bfe\u8c61\u306b\u3057\u307e\u3059\u3002\u30b3\u30df\u30c3\u30c8ID\u3082\u305d\u306e1\u4f8b\u3067\u3042\u308b\u3001\u3068\u89e3\u91c8\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u3082\u3084\u3082\u3084\u611f\u3082\u89e3\u6d88\u3057\u305f\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u5b9f\u969b\u306b tree-ish \u306b\u6307\u5b9a\u3067\u304d\u308b\u3082\u306e\u306f\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u3042\u308b\u305d\u3046\u3067\u3059 (commit-ish \u3082\u4e00\u7dd2\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059)\uff1a<\/p>\n<pre><code>----------------------------------------------------------------------\n| Commit-ish\/Tree-ish     | Examples\n----------------------------------------------------------------------\n| 1. &lt;sha1&gt;               | dae86e1950b1277e545cee180551750029cfe735\n| 2. &lt;describeOutput&gt;     | v1.7.4.2-679-g3bee7fb\n| 3. &lt;refname&gt;            | master, heads\/master, refs\/heads\/master\n| 4. &lt;refname&gt;@{&lt;date&gt;}   | master@{yesterday}, HEAD@{5 minutes ago}\n| 5. &lt;refname&gt;@{&lt;n&gt;}      | master@{1}\n| 6. @{&lt;n&gt;}               | @{1}\n| 7. @{-&lt;n&gt;}              | @{-1}\n| 8. &lt;refname&gt;@{upstream} | master@{upstream}, @{u}\n| 9. &lt;rev&gt;^               | HEAD^, v1.5.1^0\n| 10. &lt;rev&gt;~&lt;n&gt;           | master~3\n| 11. &lt;rev&gt;^{&lt;type&gt;}      | v0.99.8^{commit}\n| 12. &lt;rev&gt;^{}            | v0.99.8^{}\n| 13. &lt;rev&gt;^{\/&lt;text&gt;}     | HEAD^{\/fix nasty bug}\n| 14. :\/&lt;text&gt;            | :\/fix nasty bug\n----------------------------------------------------------------------\n| Tree-ish only           | Examples\n----------------------------------------------------------------------\n| 15. &lt;rev&gt;:&lt;path&gt;        | HEAD:README, :README, master:.\/README\n----------------------------------------------------------------------\n| Tree-ish?               | Examples\n----------------------------------------------------------------------\n| 16. :&lt;n&gt;:&lt;path&gt;         | :0:README, :README\n----------------------------------------------------------------------\n<\/code><\/pre>\n<p>\u51fa\u5178: <a href=\"https:\/\/stackoverflow.com\/questions\/4044368\/what-does-tree-ish-mean-in-git\">https:\/\/stackoverflow.com\/questions\/4044368\/what-does-tree-ish-mean-in-git<\/a><\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u8abf\u3079\u308b\u904e\u7a0b\u3067\u5b66\u3093\u3060\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3064\u3044\u3066\u306f\u3001Git \u3092\u3082\u30461\u6bb5\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u306f\u5fc5\u8981\u306a\u77e5\u8b58\u3067\u3057\u305f\u3002Tree-ish \u306f\u305f\u307e\u305f\u307e\u76ee\u306b\u3064\u3044\u3066\u53d6\u308a\u4e0a\u3052\u307e\u3057\u305f\u304c\u304b\u306a\u308a\u91cd\u7bb1\u306e\u9685\u7684\u306a\u30c8\u30d4\u30c3\u30af\u3067\u306f\u3042\u308a\u307e\u3059\u3002\u6b21\u306f\u3082\u3046\u3061\u3087\u3063\u3068\u4f7f\u3048\u308b\u90e8\u5206\u3092\u6398\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3001\u9577\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u304a\u4ed8\u304d\u5408\u3044\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001SJC\u5171\u540c\u63a8\u9032\u5ba4\u306e\u5317\u8c37\u3067\u3059\u3002 \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u306b\u643a\u308f\u3063\u3066\u3044\u308b\u7686\u3055\u3093\u306f\u666e\u6bb5Git\u3092\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u304b\u3002Git\u3063\u3066\u305f\u304f\u3055\u3093\u306e\u30b3\u30de\u30f3\u30c9\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u3001\u3068\u3066\u3082\u5168\u90e8\u306f\u628a\u63e1\u3057\u304d\u308c\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u4e2d\u3067\u958b\u767a\u306b\u5fc5\u8981\u306a\u4f7f\u3044\u65b9\u3092 [&hellip;]<\/p>\n","protected":false},"author":118,"featured_media":12187,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[164],"_links":{"self":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12094"}],"collection":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/118"}],"replies":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12094"}],"version-history":[{"count":5,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12094\/revisions"}],"predecessor-version":[{"id":12203,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12094\/revisions\/12203"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/media\/12187"}],"wp:attachment":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}