<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>동시 작업 on 얼쑤 · Team Edo</title><link>https://team-edo.github.io/tags/%EB%8F%99%EC%8B%9C-%EC%9E%91%EC%97%85/</link><description>Recent content in 동시 작업 on 얼쑤 · Team Edo</description><generator>Hugo</generator><language>ko-kr</language><lastBuildDate>Mon, 02 Nov 2026 00:00:00 +0900</lastBuildDate><atom:link href="https://team-edo.github.io/tags/%EB%8F%99%EC%8B%9C-%EC%9E%91%EC%97%85/index.xml" rel="self" type="application/rss+xml"/><item><title>Git 브랜치 갱신 전 확인할 것</title><link>https://team-edo.github.io/posts/2026/11/guard-git-ref-updates/</link><pubDate>Mon, 02 Nov 2026 00:00:00 +0900</pubDate><guid>https://team-edo.github.io/posts/2026/11/guard-git-ref-updates/</guid><description>&lt;p>병합 뒤 로컬 기준 브랜치를 정해진 커밋으로 옮겨야 했습니다. 다른 작업을 열어 둔 상태라 기준 브랜치로 체크아웃하지 않고 처리했습니다. 이때 필요한 확인은 브랜치가 아직 제가 확인한 커밋에 있는지, 그리고 옮길 커밋이 현재 이력을 그대로 포함하는지였습니다.&lt;/p>
&lt;h2 id="움직여도-되는-참조인지-확인했다">현재 참조와 조상 관계 확인&lt;/h2>
&lt;p>먼저 &lt;code>git merge-base --is-ancestor &amp;quot;$old&amp;quot; &amp;quot;$new&amp;quot;&lt;/code>로 이전 커밋이 새 커밋의 조상인지 확인했습니다. 종료 코드가 0이어야 빨리 감기입니다. 다음으로 &lt;code>git worktree list --porcelain&lt;/code>에서 옮길 브랜치를 사용하는 체크아웃이 없는지 확인했습니다. 체크아웃한 브랜치의 참조를 직접 바꾸면 그 폴더의 인덱스와 파일이 새 커밋에 맞춰 갱신되지 않기 때문입니다.&lt;/p></description></item></channel></rss>