Skip to content

Please remove 'git reset --hard' from the scripts, it's TOO DANGEROUS #186

Closed
@bingtimren

Description

@bingtimren
  • I'm submitting a ...
    [ ] bug report
    [*] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Please remove 'git reset --hard' from the scripts in package.json, it's TOO DANGEROUS. People may expect npm run scripts never do anything other than building, testing, at least never anything as dangerous as git reset --hard without warning.

If the task requires a clean work directory, check it instead of doing 'git reset --hard'. Let's just say I learnt this in an expensive way. Please remove it, or at least prompt user (to type something long, like what you need to do when you delete a git repository).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions