यह बिल्कुल "नया" संस्करण नहीं है, लेकिन आप git merge branch -X ours
का उपयोग करके वर्तमान शाखा पर संस्करण को हमेशा पसंद करते हैं, या git merge branch -X theirs
का उपयोग करके शाखा के संस्करण को विलय करने के लिए पसंद करते हैं।
man git-merge
से
:
ours:
This option forces conflicting hunks to be auto-resolved cleanly by favoring our version. Changes from the other tree that do not conflict with our side are reflected to the merge result. For a binary file, the entire contents are taken from our side.
theirs:
This is the opposite of "ours".
स्रोत
2012-11-27 22:34:32
संभव डुप्लिकेट (http://stackoverflow.com/questions/4785107/git-pull-from-remote-can-i-force-it-to-overwrite-rather-than-report-conflicts) – Rawkode
लेकिन मैं विलय करना चाहता हूं (काम नहीं करता ओवरराइड), लेकिन इसके अलावा विवादों को स्वचालित रूप से हल करने के लिए। – bartek