Git 로컬 변경 사항 폐기

코드 예제

17
0

git 로컬 변경 사항 폐기

# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hard
6
0

unstaged 변경 사항 실행 취소 git

git checkout -- .
3
0

힘내 재설정 한 파일

git checkout HEAD -- my-file.txt
2
0

git 은 손상되지 않은 파일을 버립니다

git stash save --keep-index --include-untracked
2
0

힘내 모든 변경 사항을 실행 취소

git reset --hard
1
0

로컬 변경 사항 제거 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.

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................