ถอยหลังกลับกลายไปเป็น unstaged เปลี่ยนแปลง git
git checkout -- path/to/file/to/revert
ละทิ้งการ 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
ทำ unstaged เปลี่ยนแปลงกันใหม่แบรนซ์
git checkout -b new_branch_name
git ลบเปลี่ยนแปลง
git clean -df
git checkout -- .
git ลบ unstaged แฟ้ม
git clean -df