Suggest changing the error message:

fatal: bad default revision 'HEAD'

to something more helpful:

fatal: 'HEAD' is pointing to non-existent branch <branch_name>
edit .git/HEAD or create branch <branch_name> to fix the problem


Thanks,
Thomas

Reply via email to