Author: Hayden Smith 2021
Why?
What?
Two ways we're going to discuss this are:
git reset --hard [hash]
Sets all of your code to a specific commit. This is used for saying "I want to go back in time, and I don't care about anything that's happened since that point I'm going back to"
git reset --soft [hash]
Keeps all of your current code the same, but just changes what commit you're pointing to. This is used for saying "I like the code I have, so let's not change anything, but I want to alter the history of commits that got me here"
git commit --amend -m "Commit"