I was working on a git branch and was ready to commit my changes, so I made a commit with a useful commit message. I then absentmindedly made minor changes to the code that
If you want to discard the changes,
git checkout -- git checkout branch
If you want to keep the changes,
git stash save git checkout branch git stash pop