{"id":10928,"date":"2026-08-06T19:33:56","date_gmt":"2026-08-06T10:33:56","guid":{"rendered":"https:\/\/techmania.jp\/blog\/?p=10928"},"modified":"2026-08-07T10:34:33","modified_gmt":"2026-08-07T01:34:33","slug":"git-worktree","status":"publish","type":"post","link":"https:\/\/techmania.jp\/blog\/git-worktree\/","title":{"rendered":"Git worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/git-scm.com\/docs\/git-worktree\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Git worktree<\/a>\u3068\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">1\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u95a2\u9023\u4ed8\u3051\u3001\u7570\u306a\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u540c\u6642\u306b\u958b\u3051\u308bGit\u306e\u6a5f\u80fd<\/span>\u3067\u3059\u3002<br>\u4f5c\u696d\u4e2d\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u3001\u6a5f\u80fd\u958b\u767a\u3084\u7dca\u6025\u4fee\u6b63\u3001\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u306a\u3069\u306e\u4f5c\u696d\u3092\u4e26\u5217\u3067\u9032\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u30011\u3064\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u5909\u66f4\u3092<a href=\"https:\/\/git-scm.com\/docs\/git-commit\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>commit<\/code><\/a>\u3057\u305f\u308a\u3001<a href=\"https:\/\/git-scm.com\/docs\/git-stash\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>git stash<\/code><\/a>\u3067\u4e00\u6642\u7684\u306b\u9000\u907f\u3057\u305f\u308a\u3057\u3066\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>Git worktree\u3092\u4f7f\u3048\u3070\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u73fe\u5728\u306e\u4f5c\u696d\u72b6\u614b\u3092\u6b8b\u3057\u305f\u307e\u307e\u5225\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8ffd\u52a0\u3067\u304d\u308b<\/span>\u305f\u3081\u3001\u5207\u308a\u66ff\u3048\u306e\u624b\u9593\u3084\u64cd\u4f5c\u30df\u30b9\u3092\u6e1b\u3089\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Git worktree\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001\u65b0\u898f\u30fb\u65e2\u5b58\u30d6\u30e9\u30f3\u30c1\u3067\u306e\u4f5c\u6210\u65b9\u6cd5\u3001\u78ba\u8a8d\u30fb\u524a\u9664\u3001<code>remove<\/code>\u3068<code>prune<\/code>\u306e\u9055\u3044\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u307e\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<br>\u3042\u308f\u305b\u3066\u3001Claude Code\u306a\u3069\u306eAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u4f7f\u3063\u305f\u4e26\u5217\u958b\u767a\u306e\u65b9\u6cd5\u3082\u3001\u5b9f\u969b\u306e\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u3068\u3082\u306b\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">Git worktree\u3068\u306f<\/h2>\n\n\n\n<figure style=\"margin:24px 0;\">\n  <img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/git_worktree_shared_info.webp\" class=\"post-img\" alt=\"Git worktree\u3067\u5171\u6709\u3055\u308c\u308bGit\u7ba1\u7406\u60c5\u5831\u3068worktree\u3054\u3068\u306b\u5206\u96e2\u3055\u308c\u308bHEAD\u30fbindex\u30fb\u4f5c\u696d\u30d5\u30a1\u30a4\u30eb\" loading=\"lazy\">\n  <figcaption style=\"font-size:13px;color:#666;text-align:center;margin-top:8px;\">\n    Git worktree\u3067\u5171\u6709\u3055\u308c\u308b\u60c5\u5831\u3068\u3001worktree\u3054\u3068\u306b\u5206\u96e2\u3055\u308c\u308b\u60c5\u5831\u306e\u9055\u3044\n  <\/figcaption>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Git worktree\u3067\u306f\u3001\u6700\u521d\u306b\u4f5c\u6210\u3055\u308c\u305f\u30e1\u30a4\u30f3worktree\u306b\u52a0\u3048\u3066\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066linked worktree\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<br>\u307e\u305a\u306f\u3001\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3069\u306e\u3088\u3046\u306b\u7ba1\u7406\u3055\u308c\u308b\u306e\u304b\u3001\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 id=\"outline__1_1\" class=\"wp-block-heading\">Git worktree\u306e\u4ed5\u7d44\u307f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/git-scm.com\/docs\/git-init\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>git init<\/code><\/a>\u3084<a href=\"https:\/\/git-scm.com\/docs\/git-clone\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>git clone<\/code><\/a>\u3067\u6700\u521d\u306b\u4f5c\u6210\u3057\u305f\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u300c\u30e1\u30a4\u30f3worktree\u300d\u3068\u547c\u3070\u308c\u307e\u3059\u3002<br><code>git worktree add<\/code>\u3067\u8ffd\u52a0\u3059\u308b\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u300clinked worktree\u300d\u3068\u547c\u3070\u308c\u3001\u30e1\u30a4\u30f3worktree\u3068\u306f\u5225\u306e\u5834\u6240\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e1\u30a4\u30f3worktree\u3068linked worktree\u306f\u3001\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3084<a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Git-Objects\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Git\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/a>\u3001\u30d6\u30e9\u30f3\u30c1\u306e\u60c5\u5831\u3068\u3044\u3063\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u60c5\u5831\u3092\u5171\u6709\u3057\u307e\u3059\u3002<br>\u4e00\u65b9\u3001<a href=\"https:\/\/git-scm.com\/docs\/gitglossary\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>HEAD<\/code>\u3084index\uff08\u30b9\u30c6\u30fc\u30b8\u72b6\u614b\uff09<\/a>\u3001\u4f5c\u696d\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">worktree\u3054\u3068\u306b\u72ec\u7acb\u3057\u3066\u7ba1\u7406\u3055\u308c\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306e\u305f\u3081\u3001linked worktree\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b<a href=\"https:\/\/git-scm.com\/docs\/gitrepository-layout\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>.git<\/code><\/a>\u306f\u3001\u901a\u5e38\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3042\u308b<code>.git<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">\u5b9f\u4f53\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u306a\u304f\u3001\u5171\u901a\u306eGit\u7ba1\u7406\u9818\u57df\u3092\u53c2\u7167\u3059\u308b1\u3064\u306e\u30d5\u30a1\u30a4\u30eb<\/span>\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Git worktree\u306e\u7ba1\u7406\u69cb\u6210<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>workspace\/\n\u251c\u2500\u2500 my-project\/            # \u30e1\u30a4\u30f3worktree\uff08main\uff09\n\u2502   \u2514\u2500\u2500 .git\/              # \u5171\u901a\u306eGit\u7ba1\u7406\u9818\u57df\uff08\u5b9f\u4f53\uff09\n\u251c\u2500\u2500 feature-login\/         # linked worktree\uff08feature\/login\uff09\n\u2502   \u2514\u2500\u2500 .git               # \u5171\u901a\u9818\u57df\u3092\u53c2\u7167\u3059\u308b\u30d5\u30a1\u30a4\u30eb\n\u2514\u2500\u2500 hotfix-critical\/       # linked worktree\uff08hotfix\/critical-bug\uff09\n    \u2514\u2500\u2500 .git               # \u5171\u901a\u9818\u57df\u3092\u53c2\u7167\u3059\u308b\u30d5\u30a1\u30a4\u30eb<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">workspace\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 my-project\/            # \u30e1\u30a4\u30f3worktree\uff08main\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2502   \u2514\u2500\u2500 .git\/              # \u5171\u901a\u306eGit\u7ba1\u7406\u9818\u57df\uff08\u5b9f\u4f53\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 feature-login\/         # linked worktree\uff08feature\/login\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2502   \u2514\u2500\u2500 .git               # \u5171\u901a\u9818\u57df\u3092\u53c2\u7167\u3059\u308b\u30d5\u30a1\u30a4\u30eb<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2514\u2500\u2500 hotfix-critical\/       # linked worktree\uff08hotfix\/critical-bug\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    \u2514\u2500\u2500 .git               # \u5171\u901a\u9818\u57df\u3092\u53c2\u7167\u3059\u308b\u30d5\u30a1\u30a4\u30eb<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3064\u306eworktree\u3067<a href=\"https:\/\/git-scm.com\/docs\/git-fetch\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>git fetch<\/code><\/a>\u3092\u5b9f\u884c\u3057\u3066\u53d6\u5f97\u3057\u305fGit\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3084\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u60c5\u5831\u306f\u3001\u5171\u901a\u9818\u57df\u306b\u4fdd\u5b58\u3055\u308c\u308b\u305f\u3081\u3001\u4ed6\u306eworktree\u304b\u3089\u3082\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<br>\u4e00\u65b9\u3001\u4f9d\u5b58\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30d3\u30eb\u30c9\u6210\u679c\u7269\u3001<code>.env<\/code>\u306a\u3069\u306e\u74b0\u5883\u8a2d\u5b9a\u306f\u3001worktree\u3054\u3068\u306b\u6e96\u5099\u304c\u5fc5\u8981\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u70b9\u306b\u3064\u3044\u3066\u306f\u3001\u5f8c\u8ff0\u306e\u6ce8\u610f\u70b9\u3067\u6539\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__1_2\" class=\"wp-block-heading\">Git worktree\u3067\u3067\u304d\u308b\u3053\u3068<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Git worktree\u3092\u4f7f\u3046\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u4f5c\u696d\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u8907\u6570\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u884c\u4f5c\u696d\u3059\u308b<\/strong><br>1\u3064\u306eworktree\u3067\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u306a\u304c\u3089\u3001\u5225\u306eworktree\u3067\u958b\u767a\u3092\u7d9a\u3051\u3089\u308c\u307e\u3059\u3002<span class=\"c-user01\" style=\"font-weight:bold;\">\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u308b\u56de\u6570\u305d\u306e\u3082\u306e\u3092\u6e1b\u3089\u305b\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u958b\u767a\u4e2d\u306e\u72b6\u614b\u3092\u6b8b\u3057\u305f\u307e\u307e\u7dca\u6025\u4fee\u6b63\u3092\u884c\u3046<\/strong><br>\u4f5c\u696d\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\u3084<code>git stash<\/code>\u3067\u9000\u907f\u305b\u305a\u306b\u6b8b\u3057\u305f\u307e\u307e\u3001\u5225\u306eworktree\u3067\u7dca\u6025\u4fee\u6b63\u306b\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<span class=\"c-user01\" style=\"font-weight:bold;\">\u4fee\u6b63\u304c\u7d42\u308f\u308c\u3070\u3001\u5143\u306e\u4f5c\u696d\u3078\u3059\u3050\u623b\u308c\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><a href=\"https:\/\/docs.github.com\/en\/pull-requests\/how-tos\/review-pull-requests\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8<\/a>\u3084\u5225\u30d6\u30e9\u30f3\u30c1\u3092\u30ec\u30d3\u30e5\u30fc\u3059\u308b<\/strong><br>\u30ec\u30d3\u30e5\u30fc\u5c02\u7528\u306eworktree\u3092\u7528\u610f\u3059\u308c\u3070\u3001\u81ea\u5206\u306e\u4f5c\u696d\u74b0\u5883\u3092\u5909\u66f4\u305b\u305a\u306b\u4ed6\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u306a\u304c\u3089\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u9032\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3054\u3068\u306b\u4f5c\u696d\u5834\u6240\u3092\u5206\u96e2\u3059\u308b<\/strong><br>Claude Code\u306a\u3069\u306eAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092worktree\u3054\u3068\u306b\u5b9f\u884c\u3059\u308c\u3070\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u8907\u6570\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u3092\u540c\u6642\u306b\u66f8\u304d\u63db\u3048\u308b\u4e8b\u614b\u3092\u907f\u3051\u3084\u3059\u304f\u306a\u308a\u307e\u3059<\/span>\u3002\u8a73\u3057\u3044\u65b9\u6cd5\u306f\u5f8c\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"techmania-recirc\">\n<style>\n.techmania-recirc{margin:24px 0;font-family:-apple-system,\"Hiragino Kaku Gothic ProN\",\"Yu Gothic\",sans-serif;}\n.techmania-recirc__label{font-size:14px;color:#333;margin-bottom:8px;font-weight:bold;}\n.techmania-recirc__box{display:flex;align-items:center;gap:16px;border:1px solid #ddd;border-radius:4px;padding:12px 16px;text-decoration:none;transition:background .2s;}\n.techmania-recirc__box:hover{background:#f7f9fc;}\n.techmania-recirc__thumb{width:96px;aspect-ratio:6\/4;object-fit:cover;border-radius:4px;flex-shrink:0;}\n.techmania-recirc__title{color:#2952cc;font-size:15px;line-height:1.6;flex:1;}\n.techmania-recirc__arrow{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#2952cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;}\n<\/style>\n<div class=\"techmania-recirc__label\">\u25bc\u3053\u3061\u3089\u3082\u30c1\u30a7\u30c3\u30af\u25bc<\/div>\n<a class=\"techmania-recirc__box\" href=\"https:\/\/techmania.jp\/blog\/git0001\/\">\n  <img decoding=\"async\" class=\"techmania-recirc__thumb\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/20220613\/Git-Logo.png\" alt=\"Git\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u3084Git\u306b\u95a2\u3059\u308b\u7528\u8a9e\u3092\u89e3\u8aac\" loading=\"lazy\">\n  <span class=\"techmania-recirc__title\">Git\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u3084Git\u306b\u95a2\u3059\u308b\u7528\u8a9e\u3092\u89e3\u8aac<\/span>\n  <span class=\"techmania-recirc__arrow\">\u25b6<\/span>\n<\/a>\n<\/div>\n\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">\u30d6\u30e9\u30f3\u30c1\u30fbgit clone\u30fbgit stash\u3068worktree\u306e\u9055\u3044<\/h2>\n\n\n\n<figure style=\"margin:24px 0;\">\n  <img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/git_worktree_compare.webp\" class=\"post-img\" alt=\"git stash\u3092\u4f7f\u3063\u305f\u30d6\u30e9\u30f3\u30c1\u5207\u308a\u66ff\u3048\u3068Git worktree\u3092\u4f7f\u3063\u305f\u4e26\u884c\u4f5c\u696d\u306e\u6bd4\u8f03\" loading=\"lazy\">\n  <figcaption style=\"font-size:13px;color:#666;text-align:center;margin-top:8px;\">\n    \u901a\u5e38\u306e\u30d6\u30e9\u30f3\u30c1\u5207\u308a\u66ff\u3048\u3068\u6bd4\u3079\u305f\u3001Git worktree\u306b\u3088\u308b\u4e26\u884c\u4f5c\u696d\u306e\u30a4\u30e1\u30fc\u30b8\n  <\/figcaption>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Git worktree\u306f\u3001\u901a\u5e38\u306e\u30d6\u30e9\u30f3\u30c1\u904b\u7528\u3084<code>git clone<\/code>\u3068\u4f3c\u305f\u5834\u9762\u3067\u4f7f\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u5f79\u5272\u304c\u7570\u306a\u308a\u307e\u3059\u3002<br>\u307e\u305a\u306f3\u3064\u306e\u65b9\u6cd5\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"cloud-compare-table-wrap\">\n<table class=\"cloud-compare-table\">\n  <thead>\n    <tr>\n      <th>\u9805\u76ee<\/th>\n      <th>\u901a\u5e38\u306e\u30d6\u30e9\u30f3\u30c1\u904b\u7528<\/th>\n      <th>git clone<\/th>\n      <th>git worktree<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td>\u5f79\u5272<\/td>\n      <td>\u958b\u767a\u5185\u5bb9\u3092\u5206\u3051\u308b<\/td>\n      <td>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8907\u88fd\u3059\u308b<\/td>\n      <td>\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5897\u3084\u3059<\/td>\n    <\/tr>\n    <tr>\n      <td>\u4f5c\u6210\u3055\u308c\u308b\u3082\u306e<\/td>\n      <td>\u30d6\u30e9\u30f3\u30c1<\/td>\n      <td>\u72ec\u7acb\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea<\/td>\n      <td>\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u914d\u4e0b\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/td>\n    <\/tr>\n    <tr>\n      <td>Git\u7ba1\u7406\u60c5\u5831<\/td>\n      <td>1\u3064\u306e.git\u3092\u5171\u6709<\/td>\n      <td>\u30af\u30ed\u30fc\u30f3\u3054\u3068\u306b\u72ec\u7acb\u3057\u305f.git\u3092\u6301\u3064<\/td>\n      <td>Git\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u3069\u306e\u5171\u901a\u7ba1\u7406\u60c5\u5831\u3092\u5171\u6709<\/td>\n    <\/tr>\n    <tr>\n      <td>\u30d6\u30e9\u30f3\u30c1\u5207\u308a\u66ff\u3048<\/td>\n      <td>\u90fd\u5ea6\u5207\u308a\u66ff\u3048\u304c\u5fc5\u8981<\/td>\n      <td>\u30af\u30ed\u30fc\u30f3\u3054\u3068\u306b\u500b\u5225\u306b\u5207\u308a\u66ff\u3048\u53ef\u80fd<\/td>\n      <td>worktree\u3054\u3068\u306b\u7570\u306a\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u53ef\u80fd<\/td>\n    <\/tr>\n    <tr>\n      <td>\u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u91cf<\/td>\n      <td>\u5c11\u306a\u3044<\/td>\n      <td>\u30af\u30ed\u30fc\u30f3\u306e\u6570\u3060\u3051\u5897\u3048\u308b<\/td>\n      <td>\u4f5c\u696d\u30d5\u30a1\u30a4\u30eb\u5206\u3067\u6e08\u3080\u3053\u3068\u304c\u591a\u3044<\/td>\n    <\/tr>\n    <tr>\n      <td>\u5411\u3044\u3066\u3044\u308b\u5834\u9762<\/td>\n      <td>\u901a\u5e38\u306e\u6a5f\u80fd\u958b\u767a<\/td>\n      <td>\u5b8c\u5168\u306b\u72ec\u7acb\u3057\u305f\u74b0\u5883\u304c\u5fc5\u8981\u306a\u5834\u5408<\/td>\n      <td>\u540c\u3058\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u4e26\u884c\u4f5c\u696d\u3057\u305f\u3044\u5834\u5408<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3064\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u8907\u6570\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001\u901a\u5e38\u306e1\u3064\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08worktree\uff09\u3067\u540c\u6642\u306b\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3067\u304d\u308b\u30d6\u30e9\u30f3\u30c1\u306f1\u3064\u3060\u3051\u3067\u3059\u3002<br>\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u898b\u308b\u306b\u306f\u3001\u90fd\u5ea6<a href=\"https:\/\/git-scm.com\/docs\/git-checkout\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>git checkout<\/code><\/a>\u3067\u306e\u5207\u308a\u66ff\u3048\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>git clone<\/code>\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8907\u88fd\u3059\u308c\u3070\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30af\u30ed\u30fc\u30f3\u3054\u3068\u306b\u7570\u306a\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3067\u304d\u307e\u3059<\/span>\u3002<br>\u305f\u3060\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u30af\u30ed\u30fc\u30f3\u306f\u72ec\u7acb\u3057\u305f<code>.git<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6301\u3064\u305f\u3081\u3001\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3084Git\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u5171\u6709\u3055\u308c\u307e\u305b\u3093\u3002\u30af\u30ed\u30fc\u30f3\u3092\u5897\u3084\u3059\u307b\u3069\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u3082\u6d88\u8cbb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Git worktree\u3092\u4f7f\u3046\u3068\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">1\u3064\u306e\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u307e\u307e\u3001\u7570\u306a\u308bworktree\u3067\u8907\u6570\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u540c\u6642\u306b\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3067\u304d\u307e\u3059<\/span>\u3002<br>Git\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3084\u5c65\u6b74\u3092\u5171\u6709\u3059\u308b\u305f\u3081\u3001<code>git clone<\/code>\u306b\u6bd4\u3079\u3066\u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u91cf\u3092\u6291\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>git stash<\/code>\u3068\u306e\u9055\u3044\u3082\u6574\u7406\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br><code>git stash<\/code>\u306f\u3001\u5909\u66f4\u5185\u5bb9\u3092\u4e00\u6642\u7684\u306b\u9000\u907f\u3057\u3066\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\u3067\u3059\u3002\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f1\u3064\u306e\u307e\u307e\u3067\u3001\u9000\u907f\u3068\u5fa9\u5143\uff08<code>stash pop<\/code>\uff09\u3092\u90fd\u5ea6\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3001worktree\u306f\u3001\u73fe\u5728\u306e\u4f5c\u696d\u72b6\u614b\u3092\u6b8b\u3057\u305f\u307e\u307e\u3001\u5225\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<br>\u77ed\u6642\u9593\u306e\u5207\u308a\u66ff\u3048\u306b\u306f<code>git stash<\/code>\u304c\u624b\u8efd\u3067\u3059\u304c\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u4e26\u884c\u4f5c\u696d\u3092\u7d9a\u3051\u305f\u3044\u5834\u5408\u3084\u3001\u4f5c\u696d\u74b0\u5883\u3054\u3068\u7dad\u6301\u3057\u305f\u3044\u5834\u5408\u306fworktree\u304c\u5411\u3044\u3066\u3044\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">Git worktree\u306e\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306f\u3001\u5b9f\u969b\u306bGit worktree\u3092\u64cd\u4f5c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u6b21\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u3092\u4f8b\u3068\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4eca\u56de\u4f7f\u7528\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>workspace\/\n\u251c\u2500\u2500 my-project\/           # main\u30d6\u30e9\u30f3\u30c1\n\u251c\u2500\u2500 feature-login\/        # feature\/login\u30d6\u30e9\u30f3\u30c1\n\u2514\u2500\u2500 hotfix-critical\/      # hotfix\/critical-bug\u30d6\u30e9\u30f3\u30c1<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">workspace\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 my-project\/           # main\u30d6\u30e9\u30f3\u30c1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 feature-login\/        # feature\/login\u30d6\u30e9\u30f3\u30c1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2514\u2500\u2500 hotfix-critical\/      # hotfix\/critical-bug\u30d6\u30e9\u30f3\u30c1<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__3_1\" class=\"wp-block-heading\">\u30ea\u30dd\u30b8\u30c8\u30ea\u3068worktree\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u4f5c\u696d\u3059\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u3078\u79fb\u52d5\u3057\u3001\u73fe\u5728\u767b\u9332\u3055\u308c\u3066\u3044\u308bworktree\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cd my-project\ngit worktree list<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #82AAFF\">cd<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">my-project<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">list<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u529b\u4f8b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">git worktree list\u306e\u51fa\u529b\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/Users\/example\/workspace\/my-project  a1b2c3d &#91;main&#93;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">\/Users\/example\/workspace\/my-project  a1b2c3d &#91;main&#93;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ed\u30c3\u30af\u72b6\u614b\u3084\u524a\u9664\u53ef\u80fd\u304b\u3069\u3046\u304b\u306a\u3069\u3001\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f<code>--verbose<\/code>\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree list --verbose<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">list<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--verbose<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u6642\u70b9\u3067\u306f\u3001\u30e1\u30a4\u30f3worktree\u306e\u307f\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br><code>git worktree add<\/code>\u3067\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u57fa\u70b9\u3068\u306a\u308b\u30b3\u30df\u30c3\u30c8\u304c\u5fc5\u8981\u306a\u305f\u3081\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u521d\u56de\u30b3\u30df\u30c3\u30c8\u304c\u307e\u3060\u306e\u5834\u5408\u306f\u5148\u306b\u6e08\u307e\u305b\u3066\u304a\u304d\u307e\u3057\u3087\u3046<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_2\" class=\"wp-block-heading\">\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3068worktree\u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210\u3068worktree\u306e\u4f5c\u6210\u3092\u540c\u6642\u306b\u884c\u3046\u5834\u5408\u306f\u3001<code>git worktree add<\/code>\u306b<code>-b<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree add -b feature\/login ..\/feature-login main<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-b<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">feature\/login<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/feature-login<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">main<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u308c\u305e\u308c\u306e\u610f\u5473\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size: 1em; line-height: 1.8;\"><code>-b feature\/login<\/code> \u2026 \u65b0\u3057\u304f\u4f5c\u6210\u3059\u308b\u30d6\u30e9\u30f3\u30c1\u540d<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><code>..\/feature-login<\/code> \u2026 worktree\u306e\u4f5c\u6210\u5148\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><code>main<\/code> \u2026 \u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210\u5143\u30d6\u30e9\u30f3\u30c1<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u69cb\u6587\u3067\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30d1\u30b9\u3088\u308a\u524d\u306b\u8a18\u8f09\u3057\u307e\u3059\u3002<br>\u4f5c\u6210\u5143\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u7701\u7565\u3057\u305f\u5834\u5408\u306f\u3001\u73fe\u5728\u306e<code>HEAD<\/code>\u304c\u57fa\u70b9\u306b\u306a\u308a\u307e\u3059\u3002<span class=\"c-user01\" style=\"font-weight:bold;\">\u610f\u56f3\u3057\u306a\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u57fa\u70b9\u306b\u3057\u306a\u3044\u3088\u3046\u3001\u57fa\u70b9\u3092\u660e\u793a\u3057\u305f\u3044\u5834\u5408\u306f<\/span><code>main<\/code>\u306e\u3088\u3046\u306b\u30d6\u30e9\u30f3\u30c1\u540d\u3092\u66f8\u3044\u3066\u304a\u304f\u3068\u5b89\u5168\u3067\u3059\u3002<\/p>\n\n\n\n<figure style=\"margin:24px 0;\">\n  <img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/git_worktree_add_list.webp\" class=\"post-img\" alt=\"git worktree add\u3067feature-login\u30d6\u30e9\u30f3\u30c1\u306eworktree\u3092\u4f5c\u6210\u3057\u3001git worktree list\u3067\u78ba\u8a8d\u3057\u305fWindows PowerShell\u753b\u9762\" loading=\"lazy\">\n  <figcaption style=\"font-size:13px;color:#666;text-align:center;margin-top:8px;\">\n    feature\/login\u30d6\u30e9\u30f3\u30c1\u306eworktree\u3092\u4f5c\u6210\u3057\u3001git worktree list\u3067\u767b\u9332\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u305f\u753b\u9762\n  <\/figcaption>\n<\/figure>\n\n\n\n<h3 id=\"outline__3_3\" class=\"wp-block-heading\">\u65e2\u5b58\u306e\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3067worktree\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e2\u306b\u5b58\u5728\u3059\u308b\u30d6\u30e9\u30f3\u30c1\u3067worktree\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u3001<code>-b<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u305a\u306b\u30d6\u30e9\u30f3\u30c1\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree add ..\/develop develop<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/develop<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">develop<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6307\u5b9a\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u304c\u5225\u306eworktree\u3067\u65e2\u306b\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u306f\u3001\u8907\u6570\u306eworktree\u3067\u540c\u6642\u306b\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093<\/span>\u3002\u8a73\u3057\u3044\u30a8\u30e9\u30fc\u5185\u5bb9\u3068\u5bfe\u51e6\u65b9\u6cd5\u306f\u5f8c\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_4\" class=\"wp-block-heading\">\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u3092\u30ec\u30d3\u30e5\u30fc\u7528worktree\u3067\u958b\u304f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ed6\u306e\u30e1\u30f3\u30d0\u30fc\u304c\u4f5c\u6210\u3057\u305f\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u3092\u3001\u8aad\u307f\u53d6\u308a\u3084\u52d5\u4f5c\u78ba\u8a8d\u306e\u305f\u3081\u306b\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u307e\u305a\u6700\u65b0\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git fetch origin\ngit worktree add --detach ..\/review-login origin\/feature\/login<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">fetch<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">origin<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--detach<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/review-login<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">origin\/feature\/login<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>--detach<\/code>\u3092\u4ed8\u3051\u308b\u3068\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30d6\u30e9\u30f3\u30c1\u306b\u95a2\u9023\u4ed8\u3051\u305a\u306b\u7279\u5b9a\u306e\u30b3\u30df\u30c3\u30c8\u3092\u305d\u306e\u307e\u307e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3067\u304d\u307e\u3059<\/span>\u3002\u3053\u306e\u72b6\u614b\u306f\u300cdetached HEAD\uff08\u30c7\u30bf\u30c3\u30c1\u30c9\u30d8\u30c3\u30c9\uff09\u300d\u3068\u547c\u3070\u308c\u3001\u305d\u306e\u5834\u3067\u30b3\u30df\u30c3\u30c8\u3057\u3066\u3082\u3001\u3069\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u3082\u5c5e\u3055\u306a\u3044\u5b64\u7acb\u3057\u305f\u30b3\u30df\u30c3\u30c8\u306b\u306a\u308b\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br>\u52d5\u4f5c\u78ba\u8a8d\u3060\u3051\u304c\u76ee\u7684\u3067\u3001\u305d\u306eworktree\u4e0a\u3067\u30b3\u30df\u30c3\u30c8\u3092\u4f5c\u3089\u306a\u3044\u5834\u5408\u306b\u5411\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ec\u30d3\u30e5\u30fc\u5148\u3067\u4fee\u6b63\u3057\u3066\u30b3\u30df\u30c3\u30c8\u3059\u308b\u5834\u5408\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u3092\u57fa\u70b9\u306b\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree add -b review\/feature-login ..\/review-login origin\/feature\/login<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-b<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">review\/feature-login<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/review-login<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">origin\/feature\/login<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u3067\u3042\u308b\u3053\u3068\u3092\u660e\u793a\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code>--track<\/code>\u3092\u4ed8\u3051\u3066\u6b21\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree add --track -b review\/feature-login ..\/review-login origin\/feature\/login<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--track<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-b<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">review\/feature-login<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/review-login<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">origin\/feature\/login<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>-b<\/code>\u3067\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u3092\u76f4\u63a5\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u591a\u304f\u306e\u74b0\u5883\u3067\u306f\u81ea\u52d5\u7684\u306b\u8ffd\u8de1\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u307e\u3059\u304c\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">&#8211;track\u3092\u4ed8\u3051\u3066\u304a\u304f\u3068\u3001\u8ffd\u8de1\u95a2\u4fc2\u304c\u78ba\u5b9f\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059<\/span>\u3002<br>\u4f5c\u6210\u5f8c\u306bgit push\u3084git pull\u3092\u884c\u3046\u969b\u3001\u8ffd\u8de1\u5148\u3092\u6bce\u56de\u6307\u5b9a\u3059\u308b\u624b\u9593\u3092\u7701\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_5\" class=\"wp-block-heading\">\u4f5c\u6210\u3057\u305fworktree\u3067\u4f5c\u696d\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u6210\u3057\u305fworktree\u306f\u3001\u901a\u5e38\u306e\u30d5\u30a9\u30eb\u30c0\u3068\u540c\u3058\u3088\u3046\u306b\u6271\u3048\u307e\u3059\u3002<br><code>feature-login<\/code>\u3078\u79fb\u52d5\u3057\u3001\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3068\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cd ..\/feature-login\ngit branch --show-current\ngit status<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #82AAFF\">cd<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/feature-login<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">branch<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--show-current<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">status<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/git-scm.com\/docs\/git-branch\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>git branch --show-current<\/code><\/a>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<code>feature\/login<\/code>\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">\u3053\u306e\u72b6\u614b\u306b\u306a\u308c\u3070\u3001\u3042\u3068\u306f\u901a\u5e38\u306e\u30d6\u30e9\u30f3\u30c1\u3068\u540c\u3058\u3088\u3046\u306b\u958b\u767a\u3092\u9032\u3081\u3089\u308c\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/code.visualstudio.com\/docs\/configure\/command-line\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">VS Code<\/a>\u3067\u958b\u304f\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>code .<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">code<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">.<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__3_6\" class=\"wp-block-heading\">worktree\u3092\u524a\u9664\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u4e0d\u8981\u306b\u306a\u3063\u305fworktree\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git status\ncd ..\/my-project\ngit worktree remove ..\/feature-login\ngit branch -d feature\/login<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">status<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">cd<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/my-project<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">remove<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/feature-login<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">branch<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-d<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">feature\/login<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u64cd\u4f5c\u306b\u3064\u3044\u3066\u3001\u6b21\u306e\u70b9\u3092\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size: 1em; line-height: 1.8;\"><code>git worktree remove<\/code>\u3067\u524a\u9664\u3055\u308c\u308b\u306e\u306f\u3001linked worktree\uff08\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5074\uff09<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u30d6\u30e9\u30f3\u30c1\u306f\u81ea\u52d5\u3067\u306f\u524a\u9664\u3055\u308c\u306a\u3044<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u30d6\u30e9\u30f3\u30c1\u3082\u4e0d\u8981\u306a\u5834\u5408\u306f\u3001worktree\u3092\u524a\u9664\u3057\u305f\u3042\u3068\u306b<code>git branch -d<\/code>\u3092\u5b9f\u884c\u3059\u308b<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u672a\u30b3\u30df\u30c3\u30c8\u306e\u5909\u66f4\u3084\u672a\u8ffd\u8de1\u30d5\u30a1\u30a4\u30eb\u304c\u6b8b\u3063\u3066\u3044\u308bworktree\u306f\u3001\u901a\u5e38\u524a\u9664\u3067\u304d\u306a\u3044<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u524a\u9664\u3067\u304d\u306a\u3044\u5834\u5408\u306f<code>--force<\/code>\u3067<span class=\"c-user01\" style=\"font-weight:bold;\">\u5f37\u5236\u7684\u306b\u524a\u9664\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u5909\u66f4\u5185\u5bb9\u3092\u5931\u3046\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u5185\u5bb9\u3092\u78ba\u8a8d\u305b\u305a\u306b\u4f7f\u3046\u306e\u306f\u907f\u3051\u307e\u3057\u3087\u3046<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_7\" class=\"wp-block-heading\">remove\u3068prune\u306e\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>git worktree remove<\/code>\u3068<code>git worktree prune<\/code>\u306f\u3001\u3069\u3061\u3089\u3082worktree\u306e\u524a\u9664\u306b\u95a2\u308f\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u304c\u3001\u5f79\u5272\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"cloud-compare-table-wrap\">\n<table class=\"cloud-compare-table\">\n  <thead>\n    <tr>\n      <th>\u9805\u76ee<\/th>\n      <th>git worktree remove<\/th>\n      <th>git worktree prune<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td>\u7528\u9014<\/td>\n      <td>\u5b58\u5728\u3059\u308blinked worktree\u3092\u5b89\u5168\u306b\u524a\u9664\u3059\u308b<\/td>\n      <td>\u624b\u52d5\u524a\u9664\u306a\u3069\u3067\u6b8b\u3063\u305f\u53e4\u3044\u7ba1\u7406\u60c5\u5831\u3092\u6574\u7406\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>\u5bfe\u8c61<\/td>\n      <td>\u5b9f\u969b\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u305d\u306e\u7ba1\u7406\u60c5\u5831<\/td>\n      <td>\u5b9f\u4f53\u306e\u306a\u3044worktree\u306e\u7ba1\u7406\u60c5\u5831\u306e\u307f<\/td>\n    <\/tr>\n    <tr>\n      <td>\u901a\u5e38\u306e\u524a\u9664\u3067\u306e\u4f7f\u7528<\/td>\n      <td>\u57fa\u672c\u7684\u306b\u3053\u3061\u3089\u3092\u4f7f\u3046<\/td>\n      <td>\u901a\u5e38\u306f\u6bce\u56de\u5b9f\u884c\u3057\u306a\u304f\u3066\u3088\u3044<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"c-user01\" style=\"font-weight:bold;\">\u30d5\u30a9\u30eb\u30c0\u3092\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306a\u3069\u304b\u3089\u76f4\u63a5\u524a\u9664\u3057\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001Git\u306f\u305d\u306e\u5909\u66f4\u3092\u8a8d\u8b58\u3067\u304d\u305a<\/span>\u3001<code>git worktree list<\/code>\u306b\u5b58\u5728\u3057\u306a\u3044\u60c5\u5831\u304c\u6b8b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br>\u305d\u306e\u5834\u5408\u306f<code>prune<\/code>\u3092\u5b9f\u884c\u3057\u3066\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree prune\ngit worktree list<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">prune<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">list<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u5e38\u306b<code>remove<\/code>\u3067\u524a\u9664\u3067\u304d\u3066\u3044\u308b\u5834\u5408\u306f\u3001<code>prune<\/code>\u3092\u6bce\u56de\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">Git worktree\u306e\u4e3b\u8981\u30b3\u30de\u30f3\u30c9\u30fb\u30aa\u30d7\u30b7\u30e7\u30f3\u4e00\u89a7<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u306b\u7d39\u4ecb\u3057\u305f\u3082\u306e\u4ee5\u5916\u306b\u3082\u3001Git worktree\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<br>\u4f7f\u7528\u983b\u5ea6\u306e\u9ad8\u3044\u3082\u306e\u3092\u4e2d\u5fc3\u306b\u4e00\u89a7\u3067\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"cloud-compare-table-wrap\">\n<table class=\"cloud-compare-table\">\n  <thead>\n    <tr>\n      <th>\u30b3\u30de\u30f3\u30c9<\/th>\n      <th>\u6982\u8981<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td>git worktree add<\/td>\n      <td>\u65b0\u3057\u3044worktree\u3092\u4f5c\u6210\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>git worktree list<\/td>\n      <td>\u767b\u9332\u3055\u308c\u3066\u3044\u308bworktree\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>git worktree remove<\/td>\n      <td>\u6307\u5b9a\u3057\u305fworktree\u3092\u524a\u9664\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>git worktree prune<\/td>\n      <td>\u5b9f\u4f53\u306e\u306a\u3044worktree\u306e\u7ba1\u7406\u60c5\u5831\u3092\u6574\u7406\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>git worktree move<\/td>\n      <td>worktree\u3092\u5225\u306e\u5834\u6240\u3078\u79fb\u52d5\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>git worktree lock<\/td>\n      <td>worktree\u3092\u4fdd\u8b77\u3057\u3001prune\u3084\u524a\u9664\u306e\u5bfe\u8c61\u304b\u3089\u5916\u3059<\/td>\n    <\/tr>\n    <tr>\n      <td>git worktree unlock<\/td>\n      <td>lock\u3092\u89e3\u9664\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>git worktree repair<\/td>\n      <td>worktree\u306e\u7ba1\u7406\u60c5\u5831\u3092\u4fee\u5fa9\u3059\u308b<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>move<\/code>\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u5916\u4ed8\u3051\u30c7\u30a3\u30b9\u30af\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8d8a\u3057\u306b\u7f6e\u3044\u305fworktree\u306a\u3069\u3001\u53c2\u7167\u5148\u306e\u5834\u6240\u304c\u5909\u308f\u3063\u305f\u5834\u5408\u306b\u4f7f\u3044\u307e\u3059<\/span>\u3002<br><code>lock<\/code>\u30fb<code>unlock<\/code>\u306f\u3001\u53d6\u308a\u5916\u3057\u53ef\u80fd\u306a\u5a92\u4f53\u4e0a\u306eworktree\u306a\u3069\u3001\u5e38\u6642\u30de\u30a6\u30f3\u30c8\u3055\u308c\u306a\u3044\u74b0\u5883\u3067<code>prune<\/code>\u3084\u524a\u9664\u3092\u9632\u304e\u305f\u3044\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<code>repair<\/code>\u306f\u3001worktree\u3084\u30e1\u30a4\u30f3\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d1\u30b9\u3092\u79fb\u52d5\u3057\u305f\u3042\u3068\u306b\u3001\u7ba1\u7406\u60c5\u5831\u306e\u3064\u306a\u304c\u308a\u3092\u4fee\u5fa9\u3057\u305f\u3044\u5834\u5408\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">\u3044\u305a\u308c\u3082\u901a\u5e38\u306e\u958b\u767a\u3067\u306f\u983b\u7e41\u306b\u4f7f\u3046\u3082\u306e\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u5fc5\u8981\u306b\u306a\u3063\u305f\u969b\u306b\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u78ba\u8a8d\u3059\u308c\u3070\u5341\u5206\u3067\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>lock<\/code>\u3092\u4f7f\u3046\u969b\u306f\u3001<code>--reason<\/code>\u3067\u7406\u7531\u3092\u6dfb\u3048\u3066\u304a\u304f\u3068\u3001\u3042\u3068\u3067\u898b\u8fd4\u3057\u305f\u3068\u304d\u306b\u4f55\u306e\u305f\u3081\u306e\u30ed\u30c3\u30af\u304b\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree lock --reason \"USB\u30c9\u30e9\u30a4\u30d6\u4e0a\u306e\u305f\u3081\u4e00\u6642\u7684\u306b\u5229\u7528\u4e0d\u53ef\" ..\/portable-work<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">lock<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--reason<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">USB\u30c9\u30e9\u30a4\u30d6\u4e0a\u306e\u305f\u3081\u4e00\u6642\u7684\u306b\u5229\u7528\u4e0d\u53ef<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/portable-work<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u308f\u305b\u3066\u3001\u3088\u304f\u4f7f\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u6574\u7406\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"cloud-compare-table-wrap\">\n<table class=\"cloud-compare-table\">\n  <thead>\n    <tr>\n      <th>\u30aa\u30d7\u30b7\u30e7\u30f3<\/th>\n      <th>\u6982\u8981<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td>-b<\/td>\n      <td>\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u306a\u304c\u3089worktree\u3092\u8ffd\u52a0\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>&#8211;detach<\/td>\n      <td>\u30d6\u30e9\u30f3\u30c1\u306b\u95a2\u9023\u4ed8\u3051\u305a\u306b\u30b3\u30df\u30c3\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>&#8211;force<\/td>\n      <td>\u5b89\u5168\u306e\u305f\u3081\u306e\u5236\u9650\u3092\u7121\u8996\u3057\u3066\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>&#8211;verbose<\/td>\n      <td>\u5b9f\u884c\u7d50\u679c\u3084list\u8868\u793a\u306e\u8a73\u7d30\u60c5\u5831\u3092\u8868\u793a\u3059\u308b<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<h2 id=\"outline__5\" class=\"wp-block-heading\">Git worktree\u306e\u6d3b\u7528\u30b7\u30fc\u30f3<\/h2>\n\n\n\n<h3 id=\"outline__5_1\" class=\"wp-block-heading\">\u958b\u767a\u4e2d\u306b\u7dca\u6025\u4fee\u6b63\u304c\u5165\u3063\u305f\u5834\u5408<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>feature\/login<\/code>\u30d6\u30e9\u30f3\u30c1\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u6700\u4e2d\u306b\u3001\u672c\u756a\u74b0\u5883\u3067\u4e0d\u5177\u5408\u304c\u898b\u3064\u304b\u3063\u305f\u3068\u3057\u307e\u3059\u3002<br>\u3053\u306e\u5834\u5408\u3001<code>origin\/main<\/code>\u3092\u57fa\u70b9\u306b\u3057\u3066\u3001hotfix\u7528\u306eworktree\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git fetch origin\ngit worktree add -b hotfix\/critical-bug ..\/hotfix-critical origin\/main<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">fetch<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">origin<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-b<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">hotfix\/critical-bug<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/hotfix-critical<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">origin\/main<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u6210\u5143\u3092\u7701\u7565\u3059\u308b\u3068\u3001\u73fe\u5728\u4f5c\u696d\u4e2d\u306e<code>feature\/login<\/code>\u30d6\u30e9\u30f3\u30c1\u3092\u57fa\u70b9\u306bhotfix\u30d6\u30e9\u30f3\u30c1\u304c\u4f5c\u3089\u308c\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br>\u7dca\u6025\u4fee\u6b63\u3067\u306f\u3001<code>origin\/main<\/code>\u306e\u3088\u3046\u306b\u57fa\u70b9\u3092\u660e\u793a\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001hotfix\u7528\u306eworktree\u3067\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u4f9d\u5b58\u95a2\u4fc2\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u30d3\u30eb\u30c9\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/span>\u3002<br>\u7b46\u8005\u3082\u7dca\u6025\u4fee\u6b63\u306e\u305f\u3081\u306bworktree\u3092\u4f5c\u3063\u3066\u3059\u3050\u30b3\u30fc\u30c9\u3092\u76f4\u3057\u306b\u3044\u3063\u305f\u3082\u306e\u306e\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5fd8\u308c\u3066\u3044\u3066\u3001\u52d5\u4f5c\u78ba\u8a8d\u306e\u6bb5\u968e\u3067\u8db3\u6b62\u3081\u3092\u98df\u3063\u305f\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3059\u3002\u6025\u3044\u3067\u3044\u308b\u6642\u307b\u3069\u3001\u307e\u305a<code>npm install<\/code>\u306a\u3069\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u6e08\u307e\u305b\u3066\u304b\u3089\u4f5c\u696d\u306b\u5165\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_2\" class=\"wp-block-heading\">\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u306e\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\u5834\u5408<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u304c\u4f5c\u6210\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u306f\u3001\u524d\u8ff0\u306e\u30ec\u30d3\u30e5\u30fc\u7528worktree\u3067\u3082\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br>\u3053\u306e\u6d3b\u7528\u30b7\u30fc\u30f3\u3067\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u81ea\u5206\u304c\u4f5c\u696d\u4e2d\u306e\u30a8\u30c7\u30a3\u30bf\u3084\u672a\u30b3\u30df\u30c3\u30c8\u306e\u5909\u66f4\u3092\u3001\u305d\u306e\u307e\u307e\u6b8b\u305b\u308b\u70b9<\/span>\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\u3067\u306f\u3001\u78ba\u8a8d\u524d\u306b\u81ea\u5206\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\u3084<code>git stash<\/code>\u3067\u9000\u907f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">worktree\u3067\u3042\u308c\u3070\u3001\u305d\u306e\u624b\u9593\u3092\u304b\u3051\u305a\u306b\u3001\u5225\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u30ec\u30d3\u30e5\u30fc\u3092\u9032\u3081\u3089\u308c\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_3\" class=\"wp-block-heading\">\u8907\u6570\u306e\u30bf\u30b9\u30af\u3084\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u5834\u5408<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8907\u6570\u306e\u30bf\u30b9\u30af\u3092\u540c\u6642\u306b\u9032\u3081\u305f\u3044\u5834\u5408\u3082\u3001worktree\u304c\u5f79\u7acb\u3061\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u958b\u767a\u3068\u7ba1\u7406\u753b\u9762\u306e\u6539\u5584\u3092\u4e26\u884c\u3057\u3066\u9032\u3081\u305f\u3044\u5834\u5408\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u305d\u308c\u305e\u308c\u306b\u5c02\u7528\u306eworktree\u3092\u7528\u610f\u3059\u308c\u3070\u3001\u30d6\u30e9\u30f3\u30c1\u306e\u5207\u308a\u66ff\u3048\u306a\u3057\u306b\u4f5c\u696d\u3067\u304d\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u904e\u53bb\u306e<a href=\"https:\/\/git-scm.com\/docs\/git-tag\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30bf\u30b0<\/a>\u3084\u30b3\u30df\u30c3\u30c8\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306b\u3082\u3001\u540c\u3058\u65b9\u6cd5\u304c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree add --detach ..\/version-1 v1.0.0<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">add<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--detach<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">..\/version-1<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">v1.0.0<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>--detach<\/code>\u3092\u4ed8\u3051\u3066\u3044\u308b\u305f\u3081\u3001<code>v1.0.0<\/code><span class=\"c-user01\" style=\"font-weight:bold;\">\u30bf\u30b0\u304c\u6307\u3059\u30b3\u30df\u30c3\u30c8\u306e\u72b6\u614b\u3092\u3001\u30d6\u30e9\u30f3\u30c1\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u306b\u78ba\u8a8d\u3067\u304d\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<h2 id=\"outline__6\" class=\"wp-block-heading\">Claude Code\u306a\u3069\u306eAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067Git worktree\u3092\u4f7f\u3046\u65b9\u6cd5<\/h2>\n\n\n\n<h3 id=\"outline__6_1\" class=\"wp-block-heading\">AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3068worktree\u306e\u76f8\u6027\u304c\u3088\u3044\u7406\u7531<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/code.claude.com\/docs\/en\/overview\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Claude Code<\/a>\u306a\u3069\u306eAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u4f7f\u3063\u305f\u958b\u767a\u3067\u306f\u3001\u8907\u6570\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u540c\u6642\u306b\u52d5\u304b\u3057\u305f\u3044\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002<br>worktree\u3092\u4f7f\u3046\u3068\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3054\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u3068\u30d6\u30e9\u30f3\u30c1\u3092\u5206\u96e2\u3067\u304d\u308b\u305f\u3081\u3001\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u3092\u8907\u6570\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u540c\u6642\u306b\u4e0a\u66f8\u304d\u3059\u308b\u30ea\u30b9\u30af\u3092\u6291\u3048\u3089\u308c\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6a5f\u80fd\u958b\u767a\u3001\u30d0\u30b0\u4fee\u6b63\u3001\u30c6\u30b9\u30c8\u4f5c\u6210\u306a\u3069\u3092\u3001\u5225\u3005\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u4e26\u884c\u3057\u3066\u9032\u3081\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br>\u305f\u3060\u3057\u3001worktree\u3067\u4f5c\u696d\u5834\u6240\u3092\u5206\u3051\u3066\u3082\u3001\u305d\u308c\u305e\u308c\u306e\u5909\u66f4\u3092\u6700\u7d42\u7684\u306bmain\u3078\u30de\u30fc\u30b8\u3059\u308b\u969b\u306b\u306f\u3001\u5185\u5bb9\u306b\u3088\u3063\u3066\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<span class=\"c-user01\" style=\"font-weight:bold;\">worktree\u306f\u7af6\u5408\u305d\u306e\u3082\u306e\u3092\u306a\u304f\u3059\u6a5f\u80fd\u3067\u306f\u306a\u304f\u3001\u4f5c\u696d\u4e2d\u306e\u5e72\u6e09\u3092\u9632\u3050\u305f\u3081\u306e\u6a5f\u80fd\u3067\u3059<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__6_2\" class=\"wp-block-heading\">Claude Code\u306eworktree\u6a5f\u80fd\u3092\u4f7f\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u306b\u306f\u3001worktree\u3092\u4f7f\u3063\u3066\u72ec\u7acb\u3057\u305f\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>claude --worktree feature-auth<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">claude<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">feature-auth<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u77ed\u7e2e\u5f62\u306e<code>-w<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3082\u540c\u3058\u64cd\u4f5c\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>claude -w feature-auth<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">claude<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-w<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">feature-auth<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u5834\u6240\u306bworktree\u3068\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size: 1em; line-height: 1.8;\">\u4f5c\u6210\u5148\uff1a<code>.claude\/worktrees\/feature-auth\/<\/code><\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u4f5c\u6210\u3055\u308c\u308b\u30d6\u30e9\u30f3\u30c1\u540d\uff1a<code>worktree-feature-auth<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u3067\u4f5c\u6210\u3055\u308c\u308bworktree\u306f\u3001\u65e2\u5b9a\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30d6\u30e9\u30f3\u30c1\uff08<a href=\"https:\/\/git-scm.com\/docs\/git-remote\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>origin\/HEAD<\/code><\/a>\uff09\u3092\u57fa\u70b9\u306b\u3057\u307e\u3059\u3002<br>\u30ea\u30e2\u30fc\u30c8\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3084<code>fetch<\/code>\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u3001\u73fe\u5728\u306e\u30ed\u30fc\u30ab\u30eb<code>HEAD<\/code>\u304c\u57fa\u70b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"c-user01\" style=\"font-weight:bold;\">\u5225\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u540d\u524d\u3092\u5909\u3048\u3066\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u3001\u8907\u6570\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4e26\u884c\u3057\u3066\u958b\u59cb\u3067\u304d\u307e\u3059<\/span>\u3002<br>\u307e\u305f\u3001<code>.claude\/worktrees\/<\/code>\u4ee5\u4e0b\u306f\u30e1\u30a4\u30f3\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u898b\u308b\u3068\u672a\u8ffd\u8de1\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001<a href=\"https:\/\/git-scm.com\/docs\/gitignore\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>.gitignore<\/code><\/a>\u306b\u8ffd\u52a0\u3057\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<br>\u7b46\u8005\u3082\u8907\u6570\u306eClaude Code\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u540c\u6642\u306b\u8d70\u3089\u305b\u308b\u969b\u306b\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u304c\u5225\u306eworktree\u3067\u52d5\u304f\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u308a\u5408\u3044\u3092\u6c17\u306b\u305b\u305a\u30bb\u30c3\u30b7\u30e7\u30f3\u6570\u3092\u5897\u3084\u305b\u308b\u5b89\u5fc3\u611f\u306f\u5927\u304d\u3044\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">.gitignore\u3078\u306e\u8ffd\u8a18\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>.claude\/worktrees\/<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">.claude\/worktrees\/<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__6_3\" class=\"wp-block-heading\">.env\u306a\u3069\u306egitignore\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u3092\u5f15\u304d\u7d99\u3050<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">worktree\u306f\u65b0\u3057\u304f\u7528\u610f\u3055\u308c\u308b\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u305f\u3081\u3001<code>.gitignore<\/code>\u3067\u9664\u5916\u3055\u308c\u3066\u3044\u308b<code>.env<\/code>\u306a\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u542b\u307e\u308c\u307e\u305b\u3093\u3002<br>Claude Code\u3067\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b<a href=\"https:\/\/code.claude.com\/docs\/en\/worktrees\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>.worktreeinclude<\/code><\/a>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3068\u3001\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u3057\u3044worktree\u3078\u81ea\u52d5\u3067\u30b3\u30d4\u30fc\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">.worktreeinclude\u306e\u8a18\u8ff0\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>.env\n.env.local\nconfig\/secrets.local.json<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">.env<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">.env.local<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">config\/secrets.local.json<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>.worktreeinclude<\/code>\u306b\u3064\u3044\u3066\u3001\u6b21\u306e\u70b9\u3092\u62bc\u3055\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size: 1em; line-height: 1.8;\">Claude Code\u304cworktree\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308b\u30d5\u30a1\u30a4\u30eb<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u30b3\u30d4\u30fc\u5bfe\u8c61\u306b\u306a\u308b\u306e\u306f\u3001gitignore\u306e\u5bfe\u8c61\u306b\u306a\u3063\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u307f<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">Git\u3067\u8ffd\u8de1\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u91cd\u8907\u30b3\u30d4\u30fc\u3059\u308b\u6a5f\u80fd\u3067\u306f\u306a\u3044<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><a href=\"https:\/\/docs.npmjs.com\/cli\/v11\/configuring-npm\/folders\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>node_modules<\/code><\/a>\u3084<a href=\"https:\/\/docs.python.org\/ja\/3\/library\/venv.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>.venv<\/code><\/a>\u3001\u30d3\u30eb\u30c9\u6210\u679c\u7269\u306a\u3069\u306f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066worktree\u3054\u3068\u306b\u7528\u610f\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001<code>git worktree add<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u76f4\u63a5\u4f7f\u3063\u3066worktree\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u3001<code>.worktreeinclude<\/code>\u306f\u81ea\u52d5\u7684\u306b\u306f\u9069\u7528\u3055\u308c\u307e\u305b\u3093\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">\u3053\u306e\u4ed5\u7d44\u307f\u306f\u3001Claude Code\u304cworktree\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306b\u9650\u3089\u308c\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__6_4\" class=\"wp-block-heading\">\u4f5c\u696d\u7d42\u4e86\u5f8c\u306b\u5909\u66f4\u3092\u7d71\u5408\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3088\u308b\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u6b21\u306e\u6d41\u308c\u3067\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u7d71\u5408\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li style=\"font-size: 1em; line-height: 1.8;\">AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u5909\u66f4\u3057\u305f\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">worktree\u5074\u3067\u30b3\u30df\u30c3\u30c8\u3059\u308b<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">main\u5074\u3067<a href=\"https:\/\/git-scm.com\/docs\/git-merge\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30de\u30fc\u30b8<\/a>\u3001\u307e\u305f\u306f\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u4e0d\u8981\u306b\u306a\u3063\u305fworktree\u3092\u524a\u9664\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u751f\u6210\u3057\u305f\u5185\u5bb9\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u78ba\u8a8d\u3057\u306a\u3044\u307e\u307e\u30de\u30fc\u30b8\u305b\u305a\u3001\u5909\u66f4\u5185\u5bb9\u3068\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u5fc5\u305a\u78ba\u8a8d\u3057\u3066\u304b\u3089\u7d71\u5408\u3057\u3066\u304f\u3060\u3055\u3044<\/span>\u3002<\/p>\n\n\n\n<div class=\"techmania-recirc\">\n<style>\n.techmania-recirc{margin:24px 0;font-family:-apple-system,\"Hiragino Kaku Gothic ProN\",\"Yu Gothic\",sans-serif;}\n.techmania-recirc__label{font-size:14px;color:#333;margin-bottom:8px;font-weight:bold;}\n.techmania-recirc__box{display:flex;align-items:center;gap:16px;border:1px solid #ddd;border-radius:4px;padding:12px 16px;text-decoration:none;transition:background .2s;}\n.techmania-recirc__box:hover{background:#f7f9fc;}\n.techmania-recirc__thumb{width:96px;aspect-ratio:6\/4;object-fit:cover;border-radius:4px;flex-shrink:0;}\n.techmania-recirc__title{color:#2952cc;font-size:15px;line-height:1.6;flex:1;}\n.techmania-recirc__arrow{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#2952cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;}\n<\/style>\n<div class=\"techmania-recirc__label\">\u25bc\u3053\u3061\u3089\u3082\u30c1\u30a7\u30c3\u30af\u25bc<\/div>\n<a class=\"techmania-recirc__box\" href=\"https:\/\/techmania.jp\/blog\/harness-engineering\/\">\n  <img decoding=\"async\" class=\"techmania-recirc__thumb\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/harness-engineering.webp\" alt=\"\u30cf\u30fc\u30cd\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3068\u306f\uff1fAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u751f\u7523\u6027\u3092\u6700\u5927\u5316\u3059\u308b\u624b\u6cd5\u3092\u89e3\u8aac\" loading=\"lazy\">\n  <span class=\"techmania-recirc__title\">\u30cf\u30fc\u30cd\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3068\u306f\uff1fAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u751f\u7523\u6027\u3092\u6700\u5927\u5316\u3059\u308b\u624b\u6cd5\u3092\u89e3\u8aac<\/span>\n  <span class=\"techmania-recirc__arrow\">\u25b6<\/span>\n<\/a>\n<\/div>\n\n\n\n<h2 id=\"outline__7\" class=\"wp-block-heading\">Git worktree\u306e\u6ce8\u610f\u70b9\u3068\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Git worktree\u3092\u4f7f\u3046\u4e0a\u3067\u3064\u307e\u305a\u304d\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u3068\u3001\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3078\u306e\u5bfe\u51e6\u6cd5\u3092\u6574\u7406\u3057\u307e\u3057\u305f\u3002<br>\u307e\u305a\u306f\u65e9\u898b\u8868\u3067\u5168\u4f53\u50cf\u3092\u3064\u304b\u307f\u3001\u8a73\u3057\u3044\u5185\u5bb9\u306f\u5404\u9805\u76ee\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"cloud-compare-table-wrap\">\n<table class=\"cloud-compare-table\">\n  <thead>\n    <tr>\n      <th>\u75c7\u72b6\u30fb\u30a8\u30e9\u30fc<\/th>\n      <th>\u539f\u56e0<\/th>\n      <th>\u5bfe\u51e6<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td>worktree\u304c\u77e5\u3089\u306a\u3044\u9593\u306bprunable\u5224\u5b9a\u3055\u308c\u3001\u524a\u9664\u3055\u308c\u308b<\/td>\n      <td>worktree\u3092.git\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u4f5c\u6210\u3057\u305f<\/td>\n      <td>worktree\u306f.git\u306e\u5916\uff08\u96a3\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\uff09\u306b\u4f5c\u6210\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u3092\u5225worktree\u3067\u6307\u5b9a\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b<\/td>\n      <td>\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u306f\u8907\u6570\u306eworktree\u3067\u540c\u6642\u306b\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3067\u304d\u306a\u3044<\/td>\n      <td>\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u4f7f\u3046\u304b\u3001\u4e0d\u8981\u306a\u65b9\u3092remove\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>git worktree remove\u304c\u5931\u6557\u3059\u308b<\/td>\n      <td>\u672a\u30b3\u30df\u30c3\u30c8\u306e\u5909\u66f4\u3084\u672a\u8ffd\u8de1\u30d5\u30a1\u30a4\u30eb\u304c\u6b8b\u3063\u3066\u3044\u308b<\/td>\n      <td>git status\u3067\u78ba\u8a8d\u3057\u3001\u30b3\u30df\u30c3\u30c8\u30fbstash\u30fb\u7834\u68c4\u306e\u3044\u305a\u308c\u304b\u3092\u884c\u3046<\/td>\n    <\/tr>\n    <tr>\n      <td>.env\u3084node_modules\u304c\u898b\u5f53\u305f\u3089\u306a\u3044<\/td>\n      <td>Git\u3067\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306f\u65b0\u3057\u3044worktree\u306b\u542b\u307e\u308c\u306a\u3044<\/td>\n      <td>\u500b\u5225\u306b\u7528\u610f\u3059\u308b\u304b\u3001Claude Code\u306a\u3089.worktreeinclude\u3092\u4f7f\u3046<\/td>\n    <\/tr>\n    <tr>\n      <td>\u30e1\u30a4\u30f3worktree\u3092\u524a\u9664\u3067\u304d\u306a\u3044<\/td>\n      <td>\u30e1\u30a4\u30f3worktree\u306fremove\u306e\u5bfe\u8c61\u5916<\/td>\n      <td>\u524a\u9664\u3057\u305f\u3044\u5834\u5408\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u3054\u3068\u524a\u9664\u3059\u308b<\/td>\n    <\/tr>\n    <tr>\n      <td>\u30b5\u30d6\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u542b\u3080\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u4e0d\u5177\u5408\u304c\u51fa\u308b<\/td>\n      <td>\u8907\u6570worktree\u3067\u306e\u30b5\u30d6\u30e2\u30b8\u30e5\u30fc\u30eb\u30b5\u30dd\u30fc\u30c8\u306f\u4e0d\u5b8c\u5168<\/td>\n      <td>\u4e8b\u524d\u306b\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u5236\u9650\u4e8b\u9805\u3092\u78ba\u8a8d\u3059\u308b<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<h3 id=\"outline__7_1\" class=\"wp-block-heading\">worktree\u306e\u4fdd\u5b58\u5834\u6240\u306f.git\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5916\u306b\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">worktree\u306e\u4f5c\u6210\u5148\u306f\u3001<code>.git<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5916\u5074\u306b\u7f6e\u304f\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">.git\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306bworktree\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001Git\u304c\u305d\u306e\u4e2d\u8eab\u3092\u4e0d\u8981\u306a\u7ba1\u7406\u30c7\u30fc\u30bf\u3068\u8aa4\u8a8d\u3057\u3001git worktree prune\u306e\u5bfe\u8c61\uff08prunable\uff09\u3068\u5224\u5b9a\u3057\u3066\u3001\u610f\u56f3\u305b\u305a\u524a\u9664\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u3088\u3046\u306b\u3001<code>..\/feature-login<\/code>\u306e\u3088\u3046\u306a\u5f62\u3067\u3001\u30e1\u30a4\u30f3worktree\u3068\u540c\u3058\u968e\u5c64\u306e\u300c\u96a3\u300d\u306b\u4f5c\u6210\u3059\u308b\u306e\u304c\u5b89\u5168\u3067\u3059\u3002<br>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u5165\u308c\u5b50\u3067\u4f5c\u6210\u3057\u305f\u5834\u5408\u3082\u3001\u30a8\u30c7\u30a3\u30bf\u306e\u691c\u7d22\u7d50\u679c\u306b\u8907\u6570\u30d6\u30e9\u30f3\u30c1\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u6df7\u5728\u3059\u308b\u306a\u3069\u6df7\u4e71\u306e\u539f\u56e0\u306b\u306a\u308b\u305f\u3081\u3001\u907f\u3051\u305f\u65b9\u304c\u7121\u96e3\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_2\" class=\"wp-block-heading\">\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u306f\u8907\u6570\u306eworktree\u3067\u4f7f\u7528\u3067\u304d\u306a\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e2\u306b\u3069\u3053\u304b\u306eworktree\u3067\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u3001\u5225\u306eworktree\u3067\u3082\u6307\u5b9a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306e\u30a8\u30e9\u30fc\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fatal: 'feature\/login' is already checked out at '\/path\/to\/feature-login'<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">fatal: &#39;feature\/login&#39; is already checked out at &#39;\/path\/to\/feature-login&#39;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u5834\u5408\u306f\u3001\u6b21\u306e\u9806\u756a\u3067\u5bfe\u5fdc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li style=\"font-size: 1em; line-height: 1.8;\"><code>git worktree list<\/code>\u3067\u3001\u305d\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u4f7f\u7528\u3057\u3066\u3044\u308bworktree\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u306a\u3089\u3001<code>git worktree remove<\/code>\u3067\u524a\u9664\u3059\u308b<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u540c\u6642\u306b\u4f5c\u696d\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u65b0\u3057\u304f\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><code>--force<\/code>\u3092\u4f7f\u3048\u3070\u3053\u306e\u5236\u9650\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u304c\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u610f\u56f3\u305b\u305a\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u3092\u8907\u6570\u306e\u5834\u6240\u3067\u64cd\u4f5c\u3057\u3066\u3057\u307e\u3046\u539f\u56e0\u306b\u3082\u306a\u308b\u305f\u3081\u3001\u901a\u5e38\u306e\u624b\u9806\u3068\u3057\u3066\u306f\u304a\u3059\u3059\u3081\u3057\u307e\u305b\u3093<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_3\" class=\"wp-block-heading\">\u672a\u30b3\u30df\u30c3\u30c8\u306e\u5909\u66f4\u304c\u3042\u308b\u3068\u524a\u9664\u3067\u304d\u306a\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">worktree\u5185\u306b\u672a\u30b3\u30df\u30c3\u30c8\u306e\u5909\u66f4\u3084\u672a\u8ffd\u8de1\u30d5\u30a1\u30a4\u30eb\u304c\u6b8b\u3063\u3066\u3044\u308b\u5834\u5408\u3001<code>git worktree remove<\/code>\u306f\u901a\u5e38\u5931\u6557\u3057\u307e\u3059\u3002<br>\u307e\u305a<a href=\"https:\/\/git-scm.com\/docs\/git-status\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>git status<\/code><\/a>\u3067\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3001\u30b3\u30df\u30c3\u30c8\u3059\u308b\u3001<code>git stash<\/code>\u3067\u9000\u907f\u3059\u308b\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u4e0d\u8981\u306a\u5909\u66f4\u3092\u7834\u68c4\u3059\u308b\u306e\u3044\u305a\u308c\u304b\u3092\u884c\u3063\u3066\u304b\u3089\u3001\u3042\u3089\u305f\u3081\u3066\u524a\u9664\u3057\u307e\u3057\u3087\u3046<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_4\" class=\"wp-block-heading\">.env\u3084\u4f9d\u5b58\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u81ea\u52d5\u3067\u5171\u6709\u3055\u308c\u306a\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"c-user01\" style=\"font-weight:bold;\">Git\u3067\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u65b0\u3057\u304f\u4f5c\u6210\u3057\u305fworktree\u306b\u306f\u542b\u307e\u308c\u307e\u305b\u3093<\/span>\u3002<br><code>node_modules<\/code>\u3084<code>.venv<\/code>\u306a\u3069\u306f\u3001\u901a\u5e38worktree\u3054\u3068\u306b\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u8907\u6570\u306eworktree\u3067\u958b\u767a\u30b5\u30fc\u30d0\u30fc\u3092\u540c\u6642\u306b\u8d77\u52d5\u3059\u308b\u5834\u5408\u306f\u3001\u4f7f\u7528\u30dd\u30fc\u30c8\u306a\u3069\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u8a2d\u5b9a\u304c\u91cd\u8907\u3057\u3066\u3044\u306a\u3044\u304b\u306b\u3082\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_5\" class=\"wp-block-heading\">\u30e1\u30a4\u30f3worktree\u306fremove\u3067\u524a\u9664\u3067\u304d\u306a\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u521d\u306b<code>git clone<\/code>\u307e\u305f\u306f<code>git init<\/code>\u3092\u5b9f\u884c\u3057\u305f\u5834\u6240\u306f\u3001\u30e1\u30a4\u30f3worktree\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u3002<br>\u30e1\u30a4\u30f3worktree\u306f<code>git worktree remove<\/code>\u306e\u5bfe\u8c61\u306b\u306f\u306a\u3089\u305a\u3001\u524a\u9664\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_6\" class=\"wp-block-heading\">\u30b5\u30d6\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u542b\u3080\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u5236\u9650\u304c\u3042\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/git-scm.com\/docs\/git-submodule\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30b5\u30d6\u30e2\u30b8\u30e5\u30fc\u30eb<\/a>\u3068\u306f\u3001\u5225\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u3001\u81ea\u5206\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4e2d\u306b\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u7d44\u307f\u8fbc\u3080\u4ed5\u7d44\u307f\u306e\u3053\u3068\u3067\u3059\u3002<br>Git\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\u30b5\u30d6\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u542b\u3080\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8907\u6570\u306eworktree\u3067\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b\u969b\u306e\u30b5\u30dd\u30fc\u30c8\u306f\u3001\u5b8c\u5168\u3067\u306f\u306a\u3044\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u30b5\u30d6\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3044\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u3067worktree\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u4e8b\u524d\u306b\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u5236\u9650\u4e8b\u9805\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046<\/span>\u3002<\/p>\n\n\n\n<h2 id=\"outline__8\" class=\"wp-block-heading\">Git worktree\u306b\u95a2\u3059\u308b\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<h3 id=\"outline__8_1\" class=\"wp-block-heading\">Git worktree\u3068git clone\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>git clone<\/code>\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u5168\u4f53\u3092\u8907\u88fd\u3057\u3001Git\u306e\u7ba1\u7406\u60c5\u5831\u3082\u542b\u3081\u3066\u72ec\u7acb\u3057\u305f\u30b3\u30d4\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u4e00\u65b9\u3001Git worktree\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u306a\u3069\u306eGit\u7ba1\u7406\u60c5\u5831\u3092\u5171\u6709\u3057\u305f\u307e\u307e\u3001\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3060\u3051\u3092\u8ffd\u52a0\u3059\u308b\u6a5f\u80fd<\/span>\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__8_2\" class=\"wp-block-heading\">\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u3067\u8907\u6570\u306eworktree\u3092\u4f5c\u308c\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u5247\u3068\u3057\u3066\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">\u65e2\u306b\u3069\u3053\u304b\u306eworktree\u3067\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059<\/span>\u3002\u540c\u6642\u306b\u4f5c\u696d\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u7528\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 id=\"outline__8_3\" class=\"wp-block-heading\">worktree\u3092\u524a\u9664\u3059\u308b\u3068\u30d6\u30e9\u30f3\u30c1\u3082\u524a\u9664\u3055\u308c\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u524a\u9664\u3055\u308c\u307e\u305b\u3093\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">worktree\u3068\u30d6\u30e9\u30f3\u30c1\u306f\u5225\u3005\u306b\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u305f\u3081<\/span>\u3001\u30d6\u30e9\u30f3\u30c1\u3082\u4e0d\u8981\u306a\u5834\u5408\u306f\u3001worktree\u306e\u524a\u9664\u5f8c\u306b<code>git branch -d<\/code>\u3067\u500b\u5225\u306b\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__8_4\" class=\"wp-block-heading\">git worktree remove\u3068prune\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u8ff0\u306e\u3068\u304a\u308a\u3001<code>remove<\/code>\u306f\u5b9f\u5728\u3059\u308bworktree\u3092\u524a\u9664\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3001<code>prune<\/code>\u306f\u624b\u52d5\u524a\u9664\u306a\u3069\u3067\u6b8b\u3063\u305f\u53e4\u3044\u7ba1\u7406\u60c5\u5831\u3092\u6574\u7406\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u901a\u5e38\u306e\u524a\u9664\u306b\u306f<code>remove<\/code>\u3092\u4f7f\u3044\u3001<code>prune<\/code>\u306f\u5fc5\u8981\u306b\u306a\u3063\u305f\u3068\u304d\u3060\u3051\u5b9f\u884c\u3059\u308c\u3070\u5341\u5206\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__8_5\" class=\"wp-block-heading\">worktree\u3092\u4f5c\u6210\u3059\u308b\u3068.env\u3084node_modules\u3082\u30b3\u30d4\u30fc\u3055\u308c\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u306f\u30b3\u30d4\u30fc\u3055\u308c\u307e\u305b\u3093\u3002<span class=\"c-user01\" style=\"font-weight:bold;\">Git\u3067\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u65b0\u3057\u3044worktree\u306b\u306f\u542b\u307e\u308c\u306a\u3044\u305f\u3081<\/span>\u3067\u3059\u3002<br>Claude Code\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001<code>.worktreeinclude<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001<code>.env<\/code>\u306a\u3069gitignore\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u52d5\u7684\u306b\u5f15\u304d\u7d99\u3052\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__9\" class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Git worktree\u306e\u4ed5\u7d44\u307f\u304b\u3089\u4f7f\u3044\u65b9\u3001\u6ce8\u610f\u70b9\u307e\u3067\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size: 1em; line-height: 1.8;\">Git worktree\u306f\u3001\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30921\u3064\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3078\u95a2\u9023\u4ed8\u3051\u308b\u6a5f\u80fd<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u3001\u8907\u6570\u306e\u4f5c\u696d\u3092\u4e26\u884c\u3067\u304d\u308b<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><span class=\"c-user01\" style=\"font-weight:bold;\">\u4f5c\u6210\u5143\u306e\u30d6\u30e9\u30f3\u30c1\u3084\u30b3\u30df\u30c3\u30c8\u3092\u660e\u793a\u3059\u308b\u3068\u3001\u610f\u56f3\u3057\u306a\u3044\u30d6\u30e9\u30f3\u30c1\u4f5c\u6210\u3092\u9632\u304e\u3084\u3059\u3044<\/span><\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u901a\u5e38\u306e\u524a\u9664\u306b\u306f<code>git worktree remove<\/code>\u3092\u4f7f\u3044\u3001\u53e4\u3044\u7ba1\u7406\u60c5\u5831\u306e\u6574\u7406\u306b\u306f<code>prune<\/code>\u3092\u4f7f\u3046<\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><span class=\"c-user01\" style=\"font-weight:bold;\">Claude Code\u306a\u3069\u306eAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u4f7f\u3063\u305f\u4e26\u5217\u958b\u767a\u306b\u3082\u6d3b\u7528\u3067\u304d\u308b<\/span><\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\">\u4f5c\u696d\u5f8c\u306f\u3001\u30b3\u30df\u30c3\u30c8\u3001\u7d71\u5408\u3001worktree\u306e\u524a\u9664\u307e\u3067\u884c\u3046<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u3001\u81ea\u5206\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u73fe\u5728\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git worktree list<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">worktree<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">list<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u53c2\u8003\u8cc7\u6599<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size: 1em; line-height: 1.8;\"><a href=\"https:\/\/git-scm.com\/docs\/git-worktree\" rel=\"noreferrer noopener nofollow\">Git\u516c\u5f0f\u300cgit-worktree Documentation\u300d<\/a><\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><a href=\"https:\/\/git-scm.com\/docs\/gitrepository-layout\" rel=\"noreferrer noopener nofollow\">Git\u516c\u5f0f\u300cgitrepository-layout Documentation\u300d<\/a><\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><a href=\"https:\/\/git-scm.com\/docs\/gitignore\" rel=\"noreferrer noopener nofollow\">Git\u516c\u5f0f\u300cgitignore Documentation\u300d<\/a><\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><a href=\"https:\/\/code.claude.com\/docs\/en\/worktrees\" rel=\"noreferrer noopener nofollow\">Claude Code\u516c\u5f0f\u300cRun parallel sessions with worktrees\u300d<\/a><\/li>\n\n\n\n<li style=\"font-size: 1em; line-height: 1.8;\"><a href=\"https:\/\/github.blog\/ai-and-ml\/github-copilot\/what-are-git-worktrees-and-why-should-i-use-them\/\" rel=\"noreferrer noopener nofollow\">GitHub Blog\u300cWhat are Git worktrees, and why should I use them?\u300d<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002","protected":false},"author":12,"featured_media":10971,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"fifu_image_url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/260806_git_worktree.webp","fifu_image_alt":"\u3010Git Worktree\u3011\u8907\u6570\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4e26\u5217\u4f5c\u696d\u3059\u308b","footnotes":""},"categories":[105],"tags":[],"class_list":["post-10928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-ml"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/techmania.jp\/blog\/git-worktree\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TechMania |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Git Worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\" \/>\n\t\t<meta property=\"og:description\" content=\"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/techmania.jp\/blog\/git-worktree\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1368\" \/>\n\t\t<meta property=\"og:image:height\" content=\"196\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-08-06T10:33:56+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-08-07T01:34:33+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Git Worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/260806_git_worktree.webp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#blogposting\",\"name\":\"Git Worktree\\u3068\\u306f\\uff1f\\u5b9f\\u969b\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u56f3\\u5f0f\\u3067\\u5206\\u304b\\u308a\\u3084\\u3059\\u304f\\u89e3\\u8aac\",\"headline\":\"Git worktree\\u3068\\u306f\\uff1f\\u5b9f\\u969b\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u56f3\\u5f0f\\u3067\\u5206\\u304b\\u308a\\u3084\\u3059\\u304f\\u89e3\\u8aac\",\"author\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/260806_git_worktree.webp\",\"width\":599,\"height\":401,\"caption\":\"\\u3010Git Worktree\\u3011\\u8907\\u6570\\u30c7\\u30a3\\u30ec\\u30af\\u30c8\\u30ea\\u3067\\u4e26\\u5217\\u4f5c\\u696d\\u3059\\u308b\"},\"datePublished\":\"2026-08-06T19:33:56+09:00\",\"dateModified\":\"2026-08-07T10:34:33+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#webpage\"},\"articleSection\":\"AI\\u30fb\\u6a5f\\u68b0\\u5b66\\u7fd2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/techmania.jp\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/ai-ml\\\/#listItem\",\"name\":\"AI\\u30fb\\u6a5f\\u68b0\\u5b66\\u7fd2\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/ai-ml\\\/#listItem\",\"position\":2,\"name\":\"AI\\u30fb\\u6a5f\\u68b0\\u5b66\\u7fd2\",\"item\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/ai-ml\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#listItem\",\"name\":\"Git worktree\\u3068\\u306f\\uff1f\\u5b9f\\u969b\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u56f3\\u5f0f\\u3067\\u5206\\u304b\\u308a\\u3084\\u3059\\u304f\\u89e3\\u8aac\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#listItem\",\"position\":3,\"name\":\"Git worktree\\u3068\\u306f\\uff1f\\u5b9f\\u969b\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u56f3\\u5f0f\\u3067\\u5206\\u304b\\u308a\\u3084\\u3059\\u304f\\u89e3\\u8aac\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/ai-ml\\\/#listItem\",\"name\":\"AI\\u30fb\\u6a5f\\u68b0\\u5b66\\u7fd2\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\",\"name\":\"\\u682a\\u5f0f\\u4f1a\\u793e\\u30ec\\u30f3\\u30b5\",\"description\":\"\\u682a\\u5f0f\\u4f1a\\u793e\\u30ec\\u30f3\\u30b5\\u306f\\u3001\\u81ea\\u793e\\u30b3\\u30f3\\u30c6\\u30f3\\u30c4\\u904b\\u7528\\u3092\\u8ef8\\u306b\\u300c\\u30aa\\u30a6\\u30f3\\u30c9\\u30e1\\u30c7\\u30a3\\u30a2\\u904b\\u55b6\\u300d\\u300c\\u5404\\u30e1\\u30c7\\u30a3\\u30a2\\u306e\\u5e83\\u544a\\u904b\\u7528\\u300d\\u300c\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u306e\\u80b2\\u6210\\u300d\\u300c\\u30b7\\u30b9\\u30c6\\u30e0\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u30ea\\u30f3\\u30b0\\u4e8b\\u696d\\u300d\\u3092\\u5c55\\u958b\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\\u6e29\\u5ea6\\u3092\\u611f\\u3058\\u308b\\u30af\\u30ea\\u30a8\\u30a4\\u30c6\\u30a3\\u30d6\\u3068\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u30ea\\u30f3\\u30b0\\u3067\\u793e\\u4f1a\\u306b\\u8ca2\\u732e\\u3057\\u307e\\u3059\\u3002\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/\",\"telephone\":\"+81364575500\",\"foundingDate\":\"2011-02-18\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/logo2.webp\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/\",\"name\":\"\\u30c6\\u30c3\\u30af\\u30de\\u30cb\\u30a2\\u7de8\\u96c6\\u90e8\\u3000\\u65e9\\u5ddd\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f3efd10a50c6027d326cce83db9bfd1e00de2edb5a323b312022e637f1c55f3e?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30c6\\u30c3\\u30af\\u30de\\u30cb\\u30a2\\u7de8\\u96c6\\u90e8\\u3000\\u65e9\\u5ddd\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#webpage\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/\",\"name\":\"Git Worktree\\u3068\\u306f\\uff1f\\u5b9f\\u969b\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u56f3\\u5f0f\\u3067\\u5206\\u304b\\u308a\\u3084\\u3059\\u304f\\u89e3\\u8aac\",\"description\":\"Git worktree\\u3068\\u306f\\u30011\\u3064\\u306eGit\\u30ea\\u30dd\\u30b8\\u30c8\\u30ea\\u3067\\u8907\\u6570\\u306e\\u4f5c\\u696d\\u30c7\\u30a3\\u30ec\\u30af\\u30c8\\u30ea\\u3092\\u7ba1\\u7406\\u3057\\u3001\\u30d6\\u30e9\\u30f3\\u30c1\\u3092\\u5207\\u308a\\u66ff\\u3048\\u305a\\u306b\\u4e26\\u5217\\u4f5c\\u696d\\u3067\\u304d\\u308b\\u6a5f\\u80fd\\u3067\\u3059\\u3002\\u4f5c\\u6210\\u30fb\\u78ba\\u8a8d\\u30fb\\u524a\\u9664\\u65b9\\u6cd5\\u3001git clone\\u3068\\u306e\\u9055\\u3044\\u3001Claude Code\\u3067\\u306e\\u6d3b\\u7528\\u307e\\u3067\\u521d\\u5fc3\\u8005\\u5411\\u3051\\u306b\\u89e3\\u8aac\\u3057\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/260806_git_worktree.webp\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#mainImage\",\"width\":599,\"height\":401,\"caption\":\"\\u3010Git Worktree\\u3011\\u8907\\u6570\\u30c7\\u30a3\\u30ec\\u30af\\u30c8\\u30ea\\u3067\\u4e26\\u5217\\u4f5c\\u696d\\u3059\\u308b\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/git-worktree\\\/#mainImage\"},\"datePublished\":\"2026-08-06T19:33:56+09:00\",\"dateModified\":\"2026-08-07T10:34:33+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/\",\"name\":\"TechMania\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Git Worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","description":"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002","canonical_url":"https:\/\/techmania.jp\/blog\/git-worktree\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#blogposting","name":"Git Worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","headline":"Git worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","author":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"publisher":{"@id":"https:\/\/techmania.jp\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/260806_git_worktree.webp","width":599,"height":401,"caption":"\u3010Git Worktree\u3011\u8907\u6570\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4e26\u5217\u4f5c\u696d\u3059\u308b"},"datePublished":"2026-08-06T19:33:56+09:00","dateModified":"2026-08-07T10:34:33+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#webpage"},"isPartOf":{"@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#webpage"},"articleSection":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2"},{"@type":"BreadcrumbList","@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/techmania.jp\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/#listItem","name":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2"}},{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/#listItem","position":2,"name":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2","item":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/","nextItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#listItem","name":"Git worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac"},"previousItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#listItem","position":3,"name":"Git worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","previousItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/#listItem","name":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2"}}]},{"@type":"Organization","@id":"https:\/\/techmania.jp\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793e\u30ec\u30f3\u30b5","description":"\u682a\u5f0f\u4f1a\u793e\u30ec\u30f3\u30b5\u306f\u3001\u81ea\u793e\u30b3\u30f3\u30c6\u30f3\u30c4\u904b\u7528\u3092\u8ef8\u306b\u300c\u30aa\u30a6\u30f3\u30c9\u30e1\u30c7\u30a3\u30a2\u904b\u55b6\u300d\u300c\u5404\u30e1\u30c7\u30a3\u30a2\u306e\u5e83\u544a\u904b\u7528\u300d\u300c\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u80b2\u6210\u300d\u300c\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u4e8b\u696d\u300d\u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059\u3002\u6e29\u5ea6\u3092\u611f\u3058\u308b\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u3068\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3067\u793e\u4f1a\u306b\u8ca2\u732e\u3057\u307e\u3059\u3002","url":"https:\/\/techmania.jp\/blog\/","telephone":"+81364575500","foundingDate":"2011-02-18","logo":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/logo2.webp","@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#organizationLogo"},"image":{"@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author","url":"https:\/\/techmania.jp\/blog\/author\/k-h\/","name":"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd","image":{"@type":"ImageObject","@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f3efd10a50c6027d326cce83db9bfd1e00de2edb5a323b312022e637f1c55f3e?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd"}},{"@type":"WebPage","@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#webpage","url":"https:\/\/techmania.jp\/blog\/git-worktree\/","name":"Git Worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","description":"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002","inLanguage":"ja","isPartOf":{"@id":"https:\/\/techmania.jp\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#breadcrumblist"},"author":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"creator":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/260806_git_worktree.webp","@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#mainImage","width":599,"height":401,"caption":"\u3010Git Worktree\u3011\u8907\u6570\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4e26\u5217\u4f5c\u696d\u3059\u308b"},"primaryImageOfPage":{"@id":"https:\/\/techmania.jp\/blog\/git-worktree\/#mainImage"},"datePublished":"2026-08-06T19:33:56+09:00","dateModified":"2026-08-07T10:34:33+09:00"},{"@type":"WebSite","@id":"https:\/\/techmania.jp\/blog\/#website","url":"https:\/\/techmania.jp\/blog\/","name":"TechMania","inLanguage":"ja","publisher":{"@id":"https:\/\/techmania.jp\/blog\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"TechMania |","og:type":"article","og:title":"Git Worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","og:description":"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002","og:url":"https:\/\/techmania.jp\/blog\/git-worktree\/","og:image":"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png","og:image:secure_url":"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png","og:image:width":1368,"og:image:height":196,"article:published_time":"2026-08-06T10:33:56+00:00","article:modified_time":"2026-08-07T01:34:33+00:00","twitter:card":"summary_large_image","twitter:title":"Git Worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","twitter:description":"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002","twitter:image":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/260806_git_worktree.webp"},"aioseo_meta_data":{"post_id":"10928","title":"Git Worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","description":"Git worktree\u3068\u306f\u30011\u3064\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u8907\u6570\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7ba1\u7406\u3057\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u305a\u306b\u4e26\u5217\u4f5c\u696d\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u6210\u30fb\u78ba\u8a8d\u30fb\u524a\u9664\u65b9\u6cd5\u3001git clone\u3068\u306e\u9055\u3044\u3001Claude Code\u3067\u306e\u6d3b\u7528\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"summary_large_image","twitter_image_type":"featured","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"created":"2026-08-05 04:57:27","updated":"2026-08-07 01:34:33","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/260806_git_worktree.webp","schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/techmania.jp\/blog\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/techmania.jp\/blog\/category\/ai-ml\/\" title=\"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2\">AI\u30fb\u6a5f\u68b0\u5b66\u7fd2<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGit worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/techmania.jp\/blog"},{"label":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2","link":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/"},{"label":"Git worktree\u3068\u306f\uff1f\u5b9f\u969b\u306e\u4f7f\u3044\u65b9\u3092\u56f3\u5f0f\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac","link":"https:\/\/techmania.jp\/blog\/git-worktree\/"}],"_links":{"self":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/comments?post=10928"}],"version-history":[{"count":17,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10928\/revisions"}],"predecessor-version":[{"id":10998,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10928\/revisions\/10998"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media\/10971"}],"wp:attachment":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media?parent=10928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/categories?post=10928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/tags?post=10928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}