Skip to content

how to delete very first commit #1461

Description

@mstfdkmn

I have not able to find an equivalent of git update-ref -d HEAD to remove the first commit made for an empty repository.

I guess the delete method might be used for this aim but could not manage to succeed it. https://github.com/gitpython-developers/GitPython/blob/main/git/refs/head.py#L139

Could you clarify this?
Thanks.

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