증상
fatal: unable to auto-detect email address
detached HEAD로 떨어지고 push는 non-fast-forward 거부. 이 상태에서 rebase --continue를 치면 error: you have staged changes, commit --amend는 fatal: You are in the middle of a cherry-pick -- cannot amend로 막혀 꼬인다.
해법
rebase --abort 후, 먼저 user.email/user.name을 박고 처음부터 다시. abort해도 커밋 자체는 살아있다. status -sb가 ahead 1, behind 1이면 정상이다.
규약
자동화 스크립트의 pull-rebase 루프 앞에 신원 설정 확인을 넣는다.