git отбрасывает локальные изменения
# Discarding local changes (permanently) to a file:
git checkout -- <file>
# Discard all local changes to all files permanently:
git reset --hard
отменить неустановленные изменения git
git checkout -- .
git сбросил один файл
git checkout HEAD -- my-file.txt
git удалить неустановленные файлы
git stash save --keep-index --include-untracked
git отменит все изменения
git reset --hard
удалить локальные изменения git
git fetch # will fetch the latest changes on the remote
git reset --hard origin/master # will set your local branch to match the representation of the remote just pulled down.