Skip to content

developer doc sends me into detached head state #3431

@bhaller

Description

@bhaller

The doc at https://tskit.dev/tskit/docs/stable/development.html#git-workflow tells me:

Create a “topic branch” to work on. One reliable way to do it is to follow this recipe:
$ git fetch upstream
$ git checkout upstream/main
$ git checkout -b topic_branch_name

The second command sent me into "detached head state" and produced Git's usual rather alarming warning about that. I've never really understood the whole "detached head state" thing – many Git users probably don't, since I guess it's a rather unusual state of affairs? I then did the third command above and I think I got a new branch:

bhaller@glass % git checkout -b json_struct_padding
Switched to a new branch 'json_struct_padding'

I'm a little worried, though, that having been in the detached head state is going to be problematic somehow. At a minimum, perhaps the doc can mention this and reassure the user that it is fine. But maybe a set of steps can be given that doesn't send the user into this state in the first place?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions