Skip to content

Git discard changes permanantly deletes files on Linux #31479

Closed

Description

@nickdonato

Steps to Reproduce:

  1. add new files to a folder/repo
  2. undo the pending changes, the newly added files will be permanently deleted from the system

Reproduces without extensions: Yes

I don't know why undo/discarding pending changes using the source control built in to VS Code would permanently delete files on linux as opposed to moving them to the trash bin. Lost a few hundred files thanks to this (though I have a backup as of 6 days ago so I'm not at a complete loss).

Activity

  1. joaomoreno commented on Jul 27, 2017

    @joaomoreno
    Contributor

    I'm sorry you lost your changes.

    This feature does work as designed, though. It's what git does. That's why we have the dialog showing up, asking if you are sure. That's why This is IRREVERSIBLE is written in ALL-CAPS.

  2. added
    *as-designed
    on Jul 27, 2017
  3. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*as-designed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions