# the files need to be tracked first
git add .
# then the changes can be undone
git reset hard