git reset hard Feb 13, 2022 • ulysses Reset uncommitted changes to both files and directories. git reset --hard Remove untracked files and directories. git clean -fd