What is `Git restore` and how is it different from `Git reset`?
stackoverflow.comhttps://stackoverflow.com/a/66309040
This was the answer I originally linked to, because I found it to be an exceptional explanation of the inner workings of git. For some reason my submission now just links to the original question.