submitted 2 years ago* (last edited 2 years ago) by to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 2 years ago

No he asked for a discard after importing the project into VS Code. discard in git terms refers to git reset, not git clean. Even if he wanted to run a git reset then this version of VS Code would have run a git clean and deleted everything. Imagine he committed all 5000 files, but had a secret.json that he hadn't committed. He didn't add it to gitignore either. Running a git reset --hard will not delete this file, but the VS Code button did exactly that because it ran a git clean.

  • source
  • parent