Skip to content

Error when unstaging file #64

Description

@Mauritz8

An error appears when trying to unstage a new file that has never been committed while it has changes that are not staged. More specifically, the error appears if the following actions are taken: change -> stage -> change (do not stage) -> unstage. The error Unable to unstage file: error: the following file has staged content different from both the file and the HEAD:. The problem is that it tries to run git rm --cached instead of git restore --staged

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions