git ตั้งค่าเฉพาะแฟ้ม
git checkout c5f567 -- file1/to/restore file2/to/restore
git ปรับค่าแฟ้มเดียว
git checkout HEAD -- my-file.txt
ยังไงฉันสามารถตั้งค่าใหม่หรือถอยหลังกลับกลายไปเป็นแฟ้มที่จะเป็นเฉพาะลำดับการปรับปรุง?
git reset <commit hash> <filename>
git ถอยหลังกลับกลายไปเป็นแฟ้มเดียว
git checkout HEAD -- /directory/my-file.txt
ถอยหลังกลับกลายไปเป็น unstaged เปลี่ยนแปลง git
git checkout -- .
git กลับไปใช้ค่าก่สำหรับแฟ้มได้ครั้งละหนึ่ง
git checkout <commit_hash> path/to/file