<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Merge on 每日拍拍</title>
    <link>https://dailypypy.org/tags/merge/</link>
    <description>Recent content in Merge on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Sat, 29 Aug 2026 10:44:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/merge/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>Git rerere 實戰：記住衝突解法，讓 Rebase 與 Merge 不再重做</title>
      <link>https://dailypypy.org/learn/git-rerere/</link>
      <pubDate>Sat, 29 Aug 2026 10:44:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/git-rerere/</guid>
      <description>&lt;!---
1440x768
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, eye-level medium shot, upper body, three-quarter front view, arms folded comfortably, confident knowing smile, looking at viewer, pastel lemon cream background, subtle paired looped ribbons and interlocking translucent geometric shapes without symbols or text, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
dedup note: This is a conflict-resolution-reuse follow-up to ../git-rebase/. The older article teaches history rewriting, interactive rebase, and resolving one conflict safely; this article focuses on rerere&#39;s local resolution cache, repeated merge/rebase conflicts, inspection commands, autoupdate policy, invalidating stale records, retention, and team guardrails. It also differs from ../git-reflog/, which recovers commits and references after history-changing operations rather than remembering file-level conflict resolutions.
---&gt;
&lt;p&gt;





&lt;figure&gt;
    &lt;img class=&#34;my-0 rounded-md&#34; loading=&#34;lazy&#34; alt=&#34;featured&#34; src=&#34;./featured.png&#34; /&gt;

  
&lt;/figure&gt;
&lt;/p&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一. 前言：同一個衝突，為什麼要解第二次？ 
    &lt;div id=&#34;一-前言同一個衝突為什麼要解第二次&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80-%e5%89%8d%e8%a8%80%e5%90%8c%e4%b8%80%e5%80%8b%e8%a1%9d%e7%aa%81%e7%82%ba%e4%bb%80%e9%ba%bc%e8%a6%81%e8%a7%a3%e7%ac%ac%e4%ba%8c%e6%ac%a1&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;你在功能分支上埋頭開發兩週，每天都把最新的 &lt;code&gt;main&lt;/code&gt; rebase 進來。
偏偏團隊也在改同一份設定檔，於是那三行衝突像固定打卡一樣，每隔幾天就回來一次。
第一次仔細判斷、跑測試、完成解法很合理；第五次還靠記憶重打一遍，就只是把腦力浪費在重播。
Git 其實內建了一個低調工具：&lt;code&gt;rerere&lt;/code&gt;，名稱來自 &lt;strong&gt;reuse recorded resolution&lt;/strong&gt;。
它會記住「某種衝突長什麼樣」以及「你最後怎麼解」，下次遇到相同或可套用的衝突時，把舊解法放回工作樹。
這篇拍拍君會帶你完成一條可重做、可檢查的流程：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;在單一 repo 或全域啟用 rerere；&lt;/li&gt;
&lt;li&gt;製造並手動解掉第一次衝突；&lt;/li&gt;
&lt;li&gt;重跑 merge，觀察舊解法自動出現；&lt;/li&gt;
&lt;li&gt;用 &lt;code&gt;status&lt;/code&gt;、&lt;code&gt;remaining&lt;/code&gt;、&lt;code&gt;diff&lt;/code&gt; 檢查紀錄；&lt;/li&gt;
&lt;li&gt;撤銷錯誤記憶，管理保留期限；&lt;/li&gt;
&lt;li&gt;把 rerere 放進 rebase 與團隊工作流程，又不跳過 review。
如果你還不熟悉 rebase 本身，先看 &lt;a href=&#34;../git-rebase/&#34;&gt;Git rebase 完全攻略&lt;/a&gt;；如果是不小心把 commit 弄丟，該找的是 &lt;a href=&#34;../git-reflog/&#34;&gt;Git reflog 救援實戰&lt;/a&gt;。&lt;/li&gt;
&lt;/ul&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/git-rerere/featured.png" />
    </item>
    
  </channel>
</rss>
