<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Git으로 Obsidian 노트를 동기화할 때 충돌을 줄이는 원칙]]></title><description><![CDATA[<p dir="auto">Android에서 Obsidian으로 메모를 수정하고, Termux에서 Git으로 "pull", "commit", "push"를 해보면서 중요한 걸 하나 배웠습니다.</p>
<p dir="auto">Git은 파일을 잘 합쳐주지만, 같은 파일의 같은 위치를 여러 기기에서 동시에 수정하면 자동으로 처리하기 어렵다는 점입니다.</p>
<p dir="auto">예를 들어 PC에서 "content/backlog/tasks.md"를 수정하고 GitHub에 push했습니다.<br />
그런데 Android에서도 같은 "<a href="http://tasks.md" rel="nofollow ugc">tasks.md</a>"를 수정한 상태에서 "git pull --rebase"를 실행하면 충돌이 날 수 있습니다.</p>
<p dir="auto">GitHub:  A → B<br />
Android: A → C</p>
<p dir="auto">Git은 GitHub의 최신 변경사항 "B" 위에 Android의 변경사항 "C"를 다시 얹으려고 합니다.</p>
<p dir="auto">A → B → C</p>
<p dir="auto">하지만 "B"와 "C"가 같은 파일, 같은 줄 근처를 수정했다면 Git은 어느 쪽 내용을 살려야 할지 판단하지 못합니다.</p>
<p dir="auto">그래서 이런 충돌이 발생합니다.</p>
<p dir="auto">CONFLICT (content): Merge conflict in content/backlog/tasks.md</p>
<p dir="auto">이건 Git이 망가진 것이 아니라, 오히려 내용을 함부로 덮어쓰지 않기 위해 멈춘 것입니다.</p>
<p dir="auto">동시에 수정하면 왜 어려운가</p>
<p dir="auto">서로 다른 파일을 수정하면 Git이 대부분 자동으로 합칠 수 있습니다.</p>
<p dir="auto">PC      → content/blog/idea.md 수정<br />
Android → content/backlog/tasks.md 수정</p>
<p dir="auto">이 경우는 충돌 가능성이 낮습니다.</p>
<p dir="auto">하지만 같은 파일을 양쪽에서 수정하면 충돌 가능성이 높아집니다.</p>
<p dir="auto">PC      → content/backlog/tasks.md 수정<br />
Android → content/backlog/tasks.md 수정</p>
<p dir="auto">특히 같은 줄 근처를 수정하면 Git은 사람이 판단해야 한다고 보고 멈춥니다.</p>
<p dir="auto">결국 문제는 “Git을 못 써서”가 아니라, 하나의 파일을 여러 기기에서 동시에 편집하는 구조 자체가 충돌에 취약하다는 점입니다.</p>
<p dir="auto">앞으로의 운영 원칙</p>
<p dir="auto">Goodtek notes는 Android, PC, GitHub가 함께 쓰이는 구조입니다.</p>
<p dir="auto">그래서 앞으로는 아래 원칙으로 운영하는 것이 좋겠습니다.</p>
<p dir="auto">수정 전에는 먼저 받기<br />
수정 후에는 바로 올리기</p>
<p dir="auto">Android에서 작업할 때는 먼저 최신 상태를 받습니다.</p>
<p dir="auto">pull-notes</p>
<p dir="auto">그 다음 Obsidian에서 메모를 수정합니다.</p>
<p dir="auto">수정이 끝나면 바로 올립니다.</p>
<p dir="auto">sync-notes</p>
<p dir="auto">PC에서 작업할 때도 마찬가지입니다.</p>
<p dir="auto">git pull --rebase origin main</p>
<h1>메모 수정</h1>
<p dir="auto">git add content<br />
git commit -m "Update notes"<br />
git push</p>
<p dir="auto">핵심 흐름은 단순합니다.</p>
<p dir="auto">받고 → 쓰고 → 올리기</p>
<p dir="auto">파일을 쪼개면 충돌이 줄어든다</p>
<p dir="auto">"<a href="http://tasks.md" rel="nofollow ugc">tasks.md</a>" 하나에 모든 백로그를 계속 적으면 충돌이 자주 날 수 있습니다.</p>
<p dir="auto">특히 Android와 PC에서 자주 열어보는 파일이라면 더 그렇습니다.</p>
<p dir="auto">그래서 하나의 큰 파일에 모든 걸 넣기보다, 역할별로 나누는 편이 좋습니다.</p>
<p dir="auto">예를 들면 이렇게 나눌 수 있습니다.</p>
<p dir="auto">content/backlog/<br />
├── <a href="http://inbox.md" rel="nofollow ugc">inbox.md</a><br />
├── <a href="http://tasks.md" rel="nofollow ugc">tasks.md</a><br />
├── <a href="http://ideas.md" rel="nofollow ugc">ideas.md</a><br />
└── <a href="http://content-ideas.md" rel="nofollow ugc">content-ideas.md</a></p>
<p dir="auto">더 충돌을 줄이려면 날짜별 파일도 괜찮습니다.</p>
<p dir="auto">content/backlog/daily/<br />
├── <a href="http://2026-06-03.md" rel="nofollow ugc">2026-06-03.md</a><br />
├── <a href="http://2026-06-04.md" rel="nofollow ugc">2026-06-04.md</a><br />
└── <a href="http://2026-06-05.md" rel="nofollow ugc">2026-06-05.md</a></p>
<p dir="auto">또는 월별로 나눌 수도 있습니다.</p>
<p dir="auto">content/backlog/<br />
├── <a href="http://tasks-2026-06.md" rel="nofollow ugc">tasks-2026-06.md</a><br />
├── <a href="http://ideas-2026-06.md" rel="nofollow ugc">ideas-2026-06.md</a><br />
└── <a href="http://content-ideas-2026-06.md" rel="nofollow ugc">content-ideas-2026-06.md</a></p>
<p dir="auto">이렇게 하면 PC와 Android가 같은 파일을 동시에 수정할 확률이 줄어듭니다.</p>
<p dir="auto">Goodtek notes 추천 구조</p>
<p dir="auto">Goodtek notes에서는 Android와 PC의 역할을 나누는 방식이 좋아 보입니다.</p>
<p dir="auto">Android<br />
→ 빠른 메모, 순간적으로 떠오른 생각 기록</p>
<p dir="auto">PC<br />
→ 정리, 편집, 블로그 글로 확장, 구조화</p>
<p dir="auto">그래서 Android에서는 주로 "<a href="http://inbox.md" rel="nofollow ugc">inbox.md</a>"를 사용합니다.</p>
<p dir="auto">content/backlog/inbox.md</p>
<p dir="auto">생각난 것은 일단 여기에 빠르게 적습니다.</p>
<ul>
<li>나중에 Android Git 동기화 글 블로그로 정리하기</li>
<li>notes.goodtek.xyz 백로그 구조 정리하기</li>
<li>sync-notes 충돌 방지 로직 개선하기</li>
</ul>
<p dir="auto">그리고 PC에서 시간이 날 때 정리합니다.</p>
<p dir="auto"><a href="http://inbox.md" rel="nofollow ugc">inbox.md</a><br />
→ <a href="http://tasks.md" rel="nofollow ugc">tasks.md</a><br />
→ <a href="http://content-ideas.md" rel="nofollow ugc">content-ideas.md</a><br />
→ build-log<br />
→ blog.goodtek.xyz 글</p>
<p dir="auto">이렇게 하면 Android에서는 빠르게 기록하고, PC에서는 천천히 정리할 수 있습니다.</p>
<p dir="auto">정리</p>
<p dir="auto">이번에 배운 것은 단순한 Git 명령어가 아닙니다.</p>
<p dir="auto">Obsidian 노트를 여러 기기에서 운영하려면 Git 충돌을 없애는 것보다, 충돌이 덜 나게 쓰는 구조를 만드는 것이 더 중요하다는 점입니다.</p>
<p dir="auto">앞으로 Goodtek notes는 이렇게 운영합니다.</p>
<p dir="auto">Android에서 쓰기 전 pull-notes<br />
Android에서 쓴 후 sync-notes</p>
<p dir="auto">PC에서 쓰기 전 git pull --rebase<br />
PC에서 쓴 후 git push</p>
<p dir="auto">Android는 inbox 중심<br />
PC는 정리와 편집 중심</p>
<p dir="auto">하나의 큰 파일보다 작은 파일 여러 개<br />
동시에 같은 파일 수정하지 않기</p>
<p dir="auto">결국 핵심은 이것입니다.</p>
<p dir="auto">Git을 잘 쓰는 방법은 충돌을 잘 해결하는 것만이 아니다.<br />
충돌이 덜 나는 기록 구조를 만드는 것이다.</p>
<p dir="auto">Goodtek notes도 이런 작은 운영 원칙을 하나씩 쌓아가면서 더 오래 유지할 수 있는 기록 시스템으로 만들어가야겠습니다.</p>
]]></description><link>https://community.goodtek.xyz/topic/7/git으로-obsidian-노트를-동기화할-때-충돌을-줄이는-원칙</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 15:14:35 GMT</lastBuildDate><atom:link href="https://community.goodtek.xyz/topic/7.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Jun 2026 04:16:42 GMT</pubDate><ttl>60</ttl></channel></rss>