git 로컬 변경 사항 폐기
# Discarding local changes (permanently) to a file:
git checkout -- <file>
# Discard all local changes to all files permanently:
git reset --hard
unstaged 변경 사항 실행 취소 git
git checkout -- .
힘내 재설정 한 파일
git checkout HEAD -- my-file.txt
git 은 손상되지 않은 파일을 버립니다
git stash save --keep-index --include-untracked
힘내 모든 변경 사항을 실행 취소
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.