Reproducible synthetic Markdown vault: Git conflict and recovery
Executed 20 October 2026 by an automated research assistant in a disposable local test environment. The assistant ran the synthetic Git test sequence and recorded its outputs. This was not a hands-on test by a human editor, and it did not involve a real user's vault or any Obsidian, iCloud or Syncthing application. This is a Git filesystem experiment, not a test of the Obsidian UI, Obsidian Sync, iCloud, Syncthing, their mobile apps, or cloud failure rates. No user's personal notes were accessed.
Test environment
Python 3.13.5, Git 2.47.3. A Python harness created a fresh bare remote, local copies A and B, one Markdown note Research/idea.md, and a synthetic binary attachment Attachments/sample.bin consisting of 5,144 bytes of generated data. All lived in a temporary folder deleted when the test finished; commands used only a local Git remote, no GitHub credentials or network.
Exact test sequence and observed results
| # | Assertion | Outcome |
|---|---|---|
| 1 | Initial note committed to first worktree | PASS |
| 2 | Initial commit pushed and visible at bare remote | PASS |
| 3 | Second clone contains same note and byte-identical attachment | PASS |
| 4 | A edits a note, commits and pushes it | PASS |
| 5 | B independently edits the same line without pulling; push rejected as non-fast-forward | PASS |
| 6 | B attempts pull with merge; conflict markers and both competing edits appear | PASS |
| 7 | A manual resolution containing both edits is committed, pushed and fetched by A | PASS |
| 8 | A deletes note and attachment, commits and propagates deletion | PASS |
| 9 | git restore --source=HEAD~1 -- Research/idea.md Attachments/sample.bin, followed by commit and push, recovers note and attachment |
PASS |
| 10 | Fresh clone C receives recovered note and exact attachment | PASS |
Binary attachment SHA-256, unchanged after recovery: 4fbfd5178f6c262593c170c46d0385ae912669c3b739e00283be30e89e10653d
Overall: 10/10 checks passed.
Reproduce manually without risking any user data
Use an empty temporary directory. Never run this on a real vault.
mkdir -p /tmp/git-vault-throwaway && cd /tmp/git-vault-throwaway
git init --bare remote.git
git clone remote.git A
cd A
git config user.email [email protected]
git config user.name 'Synthetic Test'
mkdir -p Research Attachments
printf '# Topic\nShared sentence: baseline\n' > Research/idea.md
printf 'synthetic binary attachment\000\377' > Attachments/sample.bin
git add . && git commit -m initial && git push -u origin HEAD
cd ..
git clone remote.git B
cd B
git config user.email [email protected]
git config user.name 'Synthetic Test'
cd ../A
printf '# Topic\nShared sentence: edited on A\n' > Research/idea.md
git add . && git commit -m 'edit A' && git push
cd ../B
printf '# Topic\nShared sentence: edited on B\n' > Research/idea.md
git add . && git commit -m 'edit B'
git push # expected: rejection, because A's changes are missing
git pull --no-rebase # expected: merge conflict
# Resolve Research/idea.md in a text editor, keeping desired parts of both edits
git add Research/idea.md && git commit -m 'resolve conflict' && git push
cd ../A
git pull --ff-only
git rm Research/idea.md Attachments/sample.bin
git commit -m 'accidental deletion' && git push
git restore --source=HEAD~1 -- Research/idea.md Attachments/sample.bin
git add . && git commit -m 'restore deleted files' && git push
cd ..
git clone remote.git C
sha256sum A/Attachments/sample.bin C/Attachments/sample.bin
This illustrative manual reproduction generates its own small attachment and is not asserted to produce the same SHA as the original Python test; it reproduces the workflow. To reproduce the original attachment hash, generate bytes(range(256))*20 + b'\\x00\\xffsynthetic-attachment\\x00' with Python.
Editorial implications
- Git can retain and recover committed, reachable content, including binary files. It cannot recover an edit that was never committed or was lost before it reached any surviving copy.
- Concurrent same-line changes require manual Git conflict handling. This test does not establish that Obsidian Git UI or a specific mobile client handles conflicts well.
- The experiment has no bearing on Syncthing's default versioning, Obsidian Sync plan limits, or iCloud reliability. To assess those services experimentally, test each one separately on disposable accounts/devices.
- Official Obsidian guide includes Syncthing as a third-party local-sync choice: https://obsidian.md/help/Getting%20started/Sync%20your%20notes%20across%20devices . Syncthing version history defaults OFF: https://docs.syncthing.net/users/versioning.html . It is not automatically an independent backup.
- No first-hand lab comparison of services is warranted. The narrow evidence supports the article's Git recovery and manual conflict warnings.