ฉันมีที่เก็บในระบบคอมไพล์และมีไฟล์ที่แก้ไขหลายไฟล์ จากนั้นฉันก็ต้องรีบแก้ไขสิ่งที่ฉันต้องการ
- ขัดขวางการเปลี่ยนแปลงของฉัน (git stash)
- ไฟล์ที่แก้ไข (ไฟล์ vi)
- มุ่งมั่น (git กระทำ)
- popped stash (git stash pop)
สิ่งนี้ทำให้เกิดความขัดแย้ง
# On branch master
$ git stash pop
Auto-merging page/search.php
CONFLICT (content): Merge conflict in page/search.php
$ git status
# On branch master
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# both modified: page/search.php
หากฉันพยายามล้างข้อมูลการเปลี่ยนแปลงและนำการสะสมกลับมาใช้สิ่งเดียวกันจะเกิดขึ้น (ขัดแย้งกัน) ฉันไม่สนใจหน้า / search.php มากนัก แต่ฉันต้องการลบไฟล์อื่นออกจากที่เก็บ
มีวิธีการแปลงสะสมเป็นแพทช์หรือเพียงแค่รับไฟล์ตามที่พวกเขาเมื่อถูกซ่อน?