# KEEP CHANGES git reset --soft HEAD~1 # REMOVE CHANGES git reset --hard HEAD~1
use "git restore <file>..." to discard changes in working directory use "git restore --staged <file>..." to unstage