{"id":4924,"date":"2026-02-06T04:06:46","date_gmt":"2026-02-06T01:06:46","guid":{"rendered":"https:\/\/x0ct.com\/ai\/?p=4924"},"modified":"2026-02-06T04:06:46","modified_gmt":"2026-02-06T01:06:46","slug":"git-worktrees-v-claude-code-nachalo-tut-t-k-v-cluade-code-net-ui-dejstviya-nuzhno-prodelyvat-iz-k","status":"publish","type":"post","link":"https:\/\/x0ct.com\/ai\/?p=4924","title":{"rendered":"git worktrees \u0432 Claude Code\n\n\u041d\u0430\u0447\u0430\u043b\u043e \u0442\u0443\u0442\n\n\u0422.\u043a. \u0432 Cluade Code \u043d\u0435\u0442 UI &#8212; \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0438\u0437 \u043a"},"content":{"rendered":"<p><b>git worktrees \u0432 Claude Code<\/b><\/p>\n<p><a href=\"https:\/\/t.me\/prog_ai\/464\" target=\"_blank\" rel=\"noopener\">\u041d\u0430\u0447\u0430\u043b\u043e \u0442\u0443\u0442<\/a><\/p>\n<p>\u0422.\u043a. \u0432 Cluade Code \u043d\u0435\u0442 UI &#8212; \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u0438\u0437 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u0441\u0435 worktrees, \u0438\u043d\u0430\u0447\u0435, \u0433\u0438\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u0442\u044c, \u043a \u043a\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0438\u0445 \u043b\u0438\u043d\u043a\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre>\ngit worktree add ~\/Projects\/maxwell_demon_opus-wt-1 -b wt-1\ngit worktree add ~\/Projects\/maxwell_demon_opus-wt-2 -b wt-2\ngit worktree add ~\/Projects\/maxwell_demon_opus-wt-3 -b wt-3\ngit worktree add ~\/Projects\/maxwell_demon_opus-wt-4 -b wt-4\ngit worktree add ~\/Projects\/maxwell_demon_opus-wt-5 -b wt-5\n<\/pre>\n<p>\u0438\u043b\u0438<\/p>\n<pre>\nfor i in {1..5}; do git worktree add ~\/Projects\/maxwell_demon_opus-wt-$i -b wt-$i; done\n<\/pre>\n<p>\u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre>\ngit branch -m wt-1 feature-1\n<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e Claude Code \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438:<\/p>\n<pre>\n# \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0448\u0435\ncd ..\/maxwell_demon_opus-wt-1\n\n# \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u041a\u043b\u043e\u0434 \u041a\u043e\u0434\nclaude\n<\/pre>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0410\u043d\u0442\u0440\u043e\u043f\u0438\u043a\u0430 \u043e\u0431 \u044d\u0442\u043e\u043c:<br \/>\n<a href=\"https:\/\/code.claude.com\/docs\/en\/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees\" target=\"_blank\" rel=\"noopener\">https:\/\/code.claude.com\/docs\/en\/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees<\/a><\/p>\n<pre>\n# Create a new worktree with a new branch \ngit worktree add ..\/project-feature-a -b feature-a\n\n# Or create a worktree with an existing branch\ngit worktree add ..\/project-bugfix bugfix-123<\/pre>\n<p><b>\u0412 \u0447\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430?<\/b><br \/>\n\u2022 \u0414\u0430 \u043d\u0438 \u0432 \u0447\u0435\u043c. \u041f\u0440\u043e\u0441\u0442\u043e, \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0434\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git worktrees \u0432 Claude Code \u041d\u0430\u0447\u0430\u043b\u043e \u0442\u0443\u0442 \u0422.\u043a. \u0432 Cluade Code \u043d\u0435\u0442 UI &#8212; \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438. \u0418\u043c\u0435\u043d\u043d\u043e \u0438\u0437 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u0441\u0435 worktrees, \u0438\u043d\u0430\u0447\u0435, \u0433\u0438\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u0442\u044c, \u043a \u043a\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0438\u0445 \u043b\u0438\u043d\u043a\u043e\u0432\u0430\u0442\u044c: git worktree add ~\/Projects\/maxwell_demon_opus-wt-1 -b wt-1 git worktree add ~\/Projects\/maxwell_demon_opus-wt-2 -b wt-2 git worktree add ~\/Projects\/maxwell_demon_opus-wt-3 -b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4924","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=\/wp\/v2\/posts\/4924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4924"}],"version-history":[{"count":0,"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=\/wp\/v2\/posts\/4924\/revisions"}],"wp:attachment":[{"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/x0ct.com\/ai\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}