git yerel değişiklikleri sil
# Discarding local changes (permanently) to a file:
git checkout -- <file>
# Discard all local changes to all files permanently:
git reset --hard
kaydedilmemiş değişiklikleri geri al git
git checkout -- .
git bir dosyayı Sıfırla
git checkout HEAD -- my-file.txt
git kaydedilmemiş Dosyaları Sil
git stash save --keep-index --include-untracked
git tüm değişiklikleri geri al
git reset --hard
yerel değişiklikleri Kaldır 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.