Skip to content

Index.Remove option to remove only from index but not from disk #270

Closed
@yishaigalatzer

Description

@yishaigalatzer

Say the user added a file and committed it by mistake, he then wants to .gitignore it, and remove from index without actually removing the file from disk.

In Command Line I can do git rm -cached.

The only way I found to do it in libgit2sharp is to remove->commit->add the file back manually.

Any suggestions?

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