commit: give final warning when reattaching HEAD to leave commits behind