BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b79378ca
Commit
b79378ca
authored
Aug 05, 2016
by
Sean McGivern
Committed by
Fatih Acet
Aug 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add merge conflict docs
parent
4952a24f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
conflict_section.png
doc/user/project/merge_requests/img/conflict_section.png
+0
-0
merge_request_widget.png
doc/user/project/merge_requests/img/merge_request_widget.png
+0
-0
resolve_conflicts.md
doc/user/project/merge_requests/resolve_conflicts.md
+37
-0
No files found.
doc/user/project/merge_requests/img/conflict_section.png
0 → 100644
View file @
b79378ca
242 KB
doc/user/project/merge_requests/img/merge_request_widget.png
0 → 100644
View file @
b79378ca
31.5 KB
doc/user/project/merge_requests/resolve_conflicts.md
0 → 100644
View file @
b79378ca
# Merge conflict resolution
When a merge request has conflicts, GitLab may provide the option to resolve
those conflicts in the GitLab UI. (See
[
conflicts available for resolution
](
#conflicts-available-for-resolution
)
for
more information on when this is available.) If this is an option, you will see
a
**resolve these conflicts**
link in the merge request widget:
![
Merge request widget
](
img/merge_request_widget.png
)
Clicking this will show a list of files with conflicts, with conflict sections
highlighted:
![
Conflict section
](
img/conflict_section.png
)
Once all conflicts have been marked as using 'ours' or 'theirs', the conflict
can be resolved. This will perform a merge of the target branch of the merge
request into the source branch, resolving the conflicts using the options
chosen. If the source branch is
`feature`
and the target branch is
`master`
,
this is similar to performing
`git checkout feature; git merge master`
locally.
## Conflicts available for resolution
GitLab allows resolving conflicts in a file where all of the below are true:
-
The file is text, not binary
-
The file does not already contain conflict markers
-
The file, with conflict markers added, is not over 200 KB in size
-
The file exists under the same path in both branches
If any file with conflicts in that merge request does not meet all of these
criteria, the conflicts for that merge request cannot be resolved in the UI.
Additionally, GitLab does not detect conflicts in renames away from a path. For
example, this will not create a conflict: on branch
`a`
, doing
`git mv file1
file2`
; on branch
`b`
, doing
`git mv file1 file3`
. Instead, both files will be
present in the branch after the merge request is merged.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment