ai-coding-minesIndexGitHub

No git identity in the container: rebase dies halfway

Git and automation

Symptom

fatal: unable to auto-detect email address

You land in detached HEAD and push is rejected as non-fast-forward. From there, rebase --continue says error: you have staged changes, and commit --amend says fatal: You are in the middle of a cherry-pick -- cannot amend. Tangled.

Fix

rebase --abort, then set user.email / user.name first, then start over. The commit survives the abort. status -sb showing ahead 1, behind 1 is the normal state.

Convention

Put an identity check ahead of the pull-rebase loop in every automation script.