Resolve conflicts · Merge requests · Project · User · Help - GitLab
文章推薦指數: 80 %
Merge conflict resolution ... Introduced in GitLab 8.11. ... Once all conflicts have been marked as using 'ours' or 'theirs', the conflict can be resolved. This ... Mergeconflictresolution IntroducedinGitLab8.11. Whenamergerequesthasconflicts,GitLabmayprovidetheoptiontoresolve thoseconflictsintheGitLabUI.(See conflictsavailableforresolutionfor moreinformationonwhenthisisavailable.)Ifthisisanoption,youwillsee aresolvetheseconflictslinkinthemergerequestwidget: Clickingthiswillshowalistoffileswithconflicts,withconflictsections highlighted: Onceallconflictshavebeenmarkedasusing'ours'or'theirs',theconflict canberesolved.Thiswillperformamergeofthetargetbranchofthemerge requestintothesourcebranch,resolvingtheconflictsusingtheoptions chosen.Ifthesourcebranchisfeatureandthetargetbranchismaster, thisissimilartoperforminggitcheckoutfeature;gitmergemasterlocally. Mergeconflicteditor IntroducedinGitLab8.13. Themergeconflictresolutioneditorallowsformorecomplexmergeconflicts, whichrequiretheusertomanuallymodifyafileinordertoresolveaconflict, tobesolvedrightformtheGitLabinterface.UsetheEditinlinebutton toopentheeditor.Onceyou'resureaboutyourchanges,hitthe Commitconflictresolutionbutton. Conflictsavailableforresolution GitLaballowsresolvingconflictsinafilewhereallofthebelowaretrue: Thefileistext,notbinary ThefileisinaUTF-8compatibleencoding Thefiledoesnotalreadycontainconflictmarkers Thefile,withconflictmarkersadded,isnotover200KBinsize Thefileexistsunderthesamepathinbothbranches Ifanyfilewithconflictsinthatmergerequestdoesnotmeetallofthese criteria,theconflictsforthatmergerequestcannotberesolvedintheUI. Additionally,GitLabdoesnotdetectconflictsinrenamesawayfromapath.For example,thiswillnotcreateaconflict:onbrancha,doinggitmvfile1 file2;onbranchb,doinggitmvfile1file3.Instead,bothfileswillbe presentinthebranchafterthemergerequestismerged.
延伸文章資訊
- 1Resolve conflicts · Merge requests · Project · User · Help - GitLab
Merge conflict resolution ... Introduced in GitLab 8.11. ... Once all conflicts have been marked ...
- 2Resolve conflicts · Merge requests · Project · User ... - ETSI Labs
NOTE: GitLab resolves conflicts by creating a merge commit in the source branch that is not autom...
- 3Merge conflicts - GitLab Docs
Merge conflicts sample workflow · Check out a new branch and edit conflicts.rb . · Commit and pus...
- 4Resolve conflicts · Merge requests · Project · User · Help · GitLab
Resolve conflicts: interactive mode ... Introduced in GitLab 8.11. ... Once all conflicts have be...
- 5Merge conflicts - GitLab Docs