Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not just --help.

When you checkout a specific commit and are now in detached HEAD state, you are by default given the message

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -c with the switch command. Example:

      git switch -c <new-branch-name>

    Or undo this operation with:

      git switch -


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: