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
[–] 2 points 2 years ago (1 child)

If the "changes" are all your files, discarding them for me means basically delete my files, you know, the ones you are trying to add.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 14 points 2 years ago* (last edited 2 years ago)

    At the same time, OP seems a layman, and might be coming from things like Microsoft Word, where "Discard all changes" basically means "revert to last save".

    EDIT: After reading the related issues, OP may have also thought that "discard changes" was to uninitialise the repository, as opposed to wiping untracked files.

  • source
  • parent