You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/conflicts.rst
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ It creates a new commit that marks the merging of the two branches together.
25
25
26
26
**Rebase**
27
27
28
-
The `rebase` operation integrates changes from one branch into another by replaying \
28
+
The `rebase` operation integrates changes from one branch into another by reapplying \
29
29
the commits on top of the target branch. It results in a more linear history.
30
30
31
31
* Produces a cleaner, linear commit history.
@@ -81,8 +81,12 @@ When to Use Merge or Rebase
81
81
~~~~~~~~~~~~~~~~~~~~~~~~~~~
82
82
83
83
Generally, the maintainers will inform you which operation to use when merging your PR. \
84
-
Notice that there is no wrong way to merge branches, but it is important to avoid letting \
85
-
conflicts accumulate, since they can become harder to resolve.
84
+
Notice that there is no wrong way to merge branches, but ``rebase`` is usually preferred \
85
+
to keep a more linear history.
86
+
87
+
Furthermore, it is important to avoid letting conflicts accumulate, since they can become \
88
+
harder to resolve. It is recommended to update your feature branch frequently with the latest \
89
+
changes from the branch it was branched off.
86
90
87
91
Solving Conflicts
88
92
-----------------
@@ -111,7 +115,7 @@ When a conflict occurs, VS Code will open the *Merge Editor* to help you resolve
111
115
2. The *Merge Editor* will show the conflicting sections side by side.
112
116
3. Click on the `Accept Current Change` or `Accept Incoming Change` buttons to keep the desired changes, sometimes both changes will be kept or even a manual edit will be necessary.
113
117
114
-
More details on VS Code interface ans conflict solver can be found in `VS Code Docs <https://code.visualstudio.com/docs/sourcecontrol/overview#_3way-merge-editor>`_.
118
+
More details on VS Code interface and conflict solver can be found in `VS Code Docs <https://code.visualstudio.com/docs/sourcecontrol/overview#_3way-merge-editor>`_.
115
119
After resolving the conflicts, save the files, make sure all conflicts are resolved, and then \
0 commit comments