git odrzuca lokalne zmiany
# Discarding local changes (permanently) to a file:
git checkout -- <file>
# Discard all local changes to all files permanently:
git reset --hard
Cofnij nieakceptowane zmiany git
git checkout -- .
Git reset jeden plik
git checkout HEAD -- my-file.txt
git odrzuca nieuszkodzone pliki
git stash save --keep-index --include-untracked
git Cofnij wszystkie zmiany
git reset --hard
Usuń lokalne zmiany 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.