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 ปรับค่าแฟ้มเดียว

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

git เป็นการละทิ้ง unstaged แฟ้ม

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

git ยกเลิกการเปลี่ยนแปลงทั้งหมด

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
..................................................................................................................