Skip to content

Index.Unstage doesn't work before the first commit #257

@JustinBeckwith

Description

@JustinBeckwith

If I invoke Index.Unstage before making the first commit, an exception is thrown:
No valid git object identified by 'HEAD' exists in the repository.

Index.cs seems to just be issuing a reset to head, but in this case it should probably be doing something a little more like git rm --cached <file>.

I think this is where things went south:
f23436b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions