{"id":6602,"date":"2024-03-12T09:13:02","date_gmt":"2024-03-12T00:13:02","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=6602"},"modified":"2026-04-27T14:16:53","modified_gmt":"2026-04-27T05:16:53","slug":"git-%e7%89%b9%e5%ae%9a%e3%81%ae%e3%82%b3%e3%83%9f%e3%83%83%e3%83%88%e3%81%8c%e5%90%ab%e3%81%be%e3%82%8c%e3%82%8b%e3%83%96%e3%83%a9%e3%83%b3%e3%83%81%e3%81%ae%e4%b8%80%e8%a6%a7%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/6602","title":{"rendered":"[git] \u7279\u5b9a\u306e\u30b3\u30df\u30c3\u30c8\u304c\u542b\u307e\u308c\u308b\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7\u8868\u793a"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<pre class=\"lang:sh decode:true \" >git branch --contains &lt;commit&gt;<\/pre>\n<h2>\u5b9f\u884c\u4f8b<\/h2>\n<p><strong>HEAD<\/strong>\u304c\u542b\u307e\u308c\u308b\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7\u8868\u793a (Commit ID\u3092\u7701\u7565)<\/p>\n<pre class=\"lang:sh highlight:0 decode:false \" >$ git branch --contains\r\n* parent_branch\r\n  child_branch_a\r\n  child_branch_b\r\n  grandchild_branch_c<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/wp\/2024\/03\/git_branch_containes.png\" alt=\"git branch containes\"><\/p>\n<h2>\u6ce8\u610f<\/h2>\n<ul>\n<li>\u30b3\u30df\u30c3\u30c8\u540d\u3092\u7701\u7565\u3059\u308b\u3068 HEAD (\u30ab\u30ec\u30f3\u30c8\u30d6\u30e9\u30f3\u30c1\u306e\u6700\u65b0\u30b3\u30df\u30c3\u30c8\uff09\u304c\u6697\u9ed9\u7684\u306b\u6307\u5b9a\u3055\u308c\u308b\u3002<\/li>\n<li>\u30ab\u30ec\u30f3\u30c8\u30d6\u30e9\u30f3\u30c1\u300e\u3060\u3051\u300f\u304c\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3002\u305d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u542b\u3080\u5b50\u5b6b\u306e\u30d6\u30e9\u30f3\u30c1\u304c\u5168\u3066\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u308b\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 git branch &#8211;contains &lt;commit&gt; \u5b9f\u884c\u4f8b HEAD\u304c\u542b\u307e\u308c\u308b\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7\u8868\u793a (Commit ID\u3092\u7701\u7565) $ git branch &#8211;contains * parent [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"class_list":["post-6602","post","type-post","status-publish","format-standard","hentry","category-memo","tag-git"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=6602"}],"version-history":[{"count":11,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6602\/revisions"}],"predecessor-version":[{"id":8655,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6602\/revisions\/8655"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=6602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=6602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=6602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}