Interview Prep/Git & GitHub/Config, Line Endings, Files and Platform Quirks

`git am` stops with `Patch failed at 0001 Fix retry logic` and `hint: Use 'git am --show-current-patch=diff' to see the failed patch`.

IntermediateTroubleshootingConfig, Line Endings, Files and Platform Quirks
Answer

Likely causes → The mailbox patch does not apply cleanly to your current branch, usually because the base moved on.

Diagnose →

git am --show-current-patch=diff
git status

Fix → Retry with a three-way merge, resolve, and continue:

git am --abort
git am -3 patches/*.patch
# on conflict: edit files, then
git add src/retry.go
git am --continue        # or: git am --skip / git am --abort

Prevent → Ask contributors to rebase on the current base before running git format-patch.

All Git & GitHub questions Roadmap: Git & GitHub

More on Config, Line Endings, Files and Platform Quirks