These two patches let git-branch show a detached HEAD in a sensible way: [PATCH 1/2] Refactor print-functions in builtin-branch [PATCH 2/2] git-branch: show detached HEAD - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html