How to find the current git branch in detached HEAD state How to find the current git branch in detached HEAD state bash bash