Revert changes to modified files / remove untracked files / remove files from repo, but keep local version of files | git
# Revert changes to modified files.
git reset --hard
# Remove all untracked files and dirs
git clean -f
# Check what untracked files will be removed with git clean
git clean -f -n
# Remove file from repo, but keep local
git rm --cached mylogfile.log
# Remove dir from repo, but keep local
git rm --cached -r mydirectory