I think #10 might be wrong though, doesn't git reset --hard head undo and permanently remove all changes of the last commit. If so, this command should also come with a warning to be sure you know what it does.
The --soft flag on the other hand undoes the last commit but keeps the changes in working directory or staging.
I think the command you were meaning to say is git checkout -- . which discarded all changes in the working directory.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good tips!
I think #10 might be wrong though, doesn't
git reset --hard headundo and permanently remove all changes of the last commit. If so, this command should also come with a warning to be sure you know what it does.The --soft flag on the other hand undoes the last commit but keeps the changes in working directory or staging.
I think the command you were meaning to say is
git checkout -- .which discarded all changes in the working directory.