git - ours vs theirs

文章推薦指數: 80 %
投票人數:10人

Automatic merge failed; fix conflicts and then commit the result. either fix the conflict manually by editing codefile.js, or use. $ git checkout --ours ... git-ours&theirs cleanermergesforeveryone byNitayMegides pleasereportissuesongithub gitmerge let'smergeconflictingbranchfeatureintomaster $gitcheckoutmaster $gitmergefeature Auto-mergingDocument CONFLICT(content):Mergeconflictincodefile.js Automaticmergefailed;fixconflictsandthencommittheresult. eitherfixtheconflictmanuallybyeditingcodefile.js,oruse $gitcheckout--ourscodefile.js toselectthechangesdoneinmaster $gitcheckout--theirscodefile.js toselectthechangesdoneinfeature then,continueasyouwouldnormallymerge $gitaddcodefile.js $gitmerge--continue [master5d01884]Mergebranch'feature' gitrebase let'srebaseconflictingbranchfeatureovermaster $gitcheckoutfeature $gitrebasemaster First,rewindingheadtoreplayyourworkontopofit... Applying:acommitdoneinbranchfeature error:Failedtomergeinthechanges. ... eitherfixtheconflictmanuallybyeditingcodefile.js,oruse $gitcheckout--ourscodefile.js toselectthechangesdoneinmaster $gitcheckout--theirscodefile.js toselectthechangesdoneinfeature then,continueasyouwouldnormallydo $gitaddcodefile.js $gitrebase--continue Applying:acommitdoneinbranchfeature



請為這篇文章評分?