ละทิ้งการ unstaged เปลี่ยนแปลง git

รหัสตัวอย่าง

4
0

ถอยหลังกลับกลายไปเป็น unstaged เปลี่ยนแปลง git

git checkout -- path/to/file/to/revert
1
0

ละทิ้งการ unstaged เปลี่ยนแปลง git

#For all unstaged files in current working directory use:
git checkout -- .
#For a specific file use:
git checkout -- path/to/file/to/revert
1
0

ทำ unstaged เปลี่ยนแปลงกันใหม่แบรนซ์

git checkout -b new_branch_name
1
0

git ลบเปลี่ยนแปลง

git clean -df
git checkout -- .
0
0

git ลบ unstaged แฟ้ม

git clean -df

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

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