<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>AI_并行开发 | 锤子前端</title><description>Now vibe coding, so learning hammer FE ?</description><link>https://channel.meo-ai.com</link><item><title>《Git_Worktree_是什么以及为什么现在应该使用它》</title><link>https://channel.meo-ai.com/posts/664</link><guid isPermaLink="true">https://channel.meo-ai.com/posts/664</guid><pubDate>Sat, 20 Jun 2026 09:52:46 GMT</pubDate><content:encoded>&lt;span class=&quot;post-title-source&quot;&gt;《Git_Worktree_是什么以及为什么现在应该使用它》&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;标签：&lt;a href=&quot;/search/result?q=%23Git&quot; title=&quot;#Git&quot;&gt;#Git&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23GitHubCopilot&quot; title=&quot;#GitHubCopilot&quot;&gt;#GitHubCopilot&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23Worktree&quot; title=&quot;#Worktree&quot;&gt;#Worktree&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E4%B8%8A%E4%B8%8B%E6%96%87%E5%88%87%E6%8D%A2&quot; title=&quot;#上下文切换&quot;&gt;#上下文切换&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23AI_%E5%B9%B6%E8%A1%8C%E5%BC%80%E5%8F%91&quot; title=&quot;#AI_并行开发&quot;&gt;#AI_并行开发&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;总结：&lt;br /&gt;Git Worktree 是 Git 2015 年就已内置的功能，但最近因 &lt;mark class=&quot;highlight&quot;&gt;AI&lt;/mark&gt; 时代并行开发需求激增而重新流行。它允许你在同一仓库的不同分支上同时工作，每个分支拥有独立的文件夹，彻底告别 stash 切换和编辑器上下文中断的烦恼。GitHub Copilot 应用已将其作为默认工作模式。&lt;br /&gt;&lt;br /&gt;文章要点：&lt;br /&gt;1. 告别 stash 地狱：紧急修 bug 时再也不用 stash 当前工作、切分支、修完再切回来 pop stash 了，Worktree 让你原地不动就能开新窗口干活&lt;br /&gt;2. 每个分支一个文件夹：用 &lt;code&gt;git worktree add&lt;/code&gt; 瞬间创建基于任意分支的独立工作目录，原编辑器窗口完全不受影响，真正实现并行开发&lt;br /&gt;3. &lt;mark class=&quot;highlight&quot;&gt;AI&lt;/mark&gt; 时代让它翻红：以前 Worktree 鲜为人知，现在因为 &lt;mark class=&quot;highlight&quot;&gt;AI&lt;/mark&gt; Agent 和人类开发者需要大量并行会话，它成了 GitHub Copilot 等工具的默认模式&lt;br /&gt;4. 注意几个小坑：每个 Worktree 都要独立装依赖（磁盘会胖）、文件夹要记得清理、同一分支不能同时在两个 Worktree 检出&lt;br /&gt;5. VS Code 和 Copilot 都原生支持：不需要记命令，图形界面里直接选&quot;New worktree&quot;就能用，路径和变更状态一目了然&lt;br /&gt;&lt;br /&gt;URL：&lt;a href=&quot;https://github.blog/ai-and-ml/github-copilot/what-are-git-worktrees-and-why-should-i-use-them/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;https://github.blog/ai-and-ml/github-copilot/what-are-git-worktrees-and-why-should-i-use-them/&quot;&gt;https://github.blog/ai-and-ml/github-copilot/what-are-git-worktrees-and-why-should-i-use-them/&lt;/a&gt;&lt;a class=&quot;tgme_widget_message_link_preview&quot; href=&quot;https://github.blog/ai-and-ml/github-copilot/what-are-git-worktrees-and-why-should-i-use-them&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;Git worktrees have been around since 2015, but it wasn&apos;t until recently they became popular. Learn what they are, how to use them, and why you might.&quot;&gt;
  
  &lt;div class=&quot;link_preview_site_name accent_color&quot;&gt;The GitHub Blog&lt;/div&gt;
  &lt;img class=&quot;link_preview_image&quot; alt=&quot;What are git worktrees, and why should I use them?&quot; src=&quot;/static/https://cdn4.telesco.pe/file/NVbaeYKKRwStd4oVEyZ9rXmgW5gE5CKYe1EQHLTMcLsfSAC0kRdnUenj9FnM3wD0lcDnqvLhSAfBEd5Y8DajuvB0TNs7E_3i9cuzpYMvnHD4OsblwYvt2Mv11V9hIweaDJ0Uzrbo9RJmfhJt17mHKBvn6bZubWO83GMTtI3oo2LobtaSKX1rBmd1o_ivPqsi5UNh7VjHkebQYB-9K20pevbVS_T7OgOWXjLXAAkXsNer4IldHsC_rdO2z2_VKW0w5LBr7-fP3Yu6lDGQLrZY5SRxtBxSANPidJOGrOqD9PG7ebfxW6GHtspXDVbb1X36mlLOv6udrKWxABI-CellTA.jpg&quot; width=&quot;1200&quot; height=&quot;630&quot; loading=&quot;eager&quot; /&gt;
  &lt;div class=&quot;link_preview_title&quot;&gt;What are git worktrees, and why should I use them?&lt;/div&gt;
  &lt;div class=&quot;link_preview_description&quot;&gt;Git worktrees have been around since 2015, but it wasn&apos;t until recently they became popular. Learn what they are, how to use them, and why you might.&lt;/div&gt;
&lt;/a&gt;</content:encoded></item></channel></rss>