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: book/07-git-tools/sections/advanced-merging.asc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -675,8 +675,8 @@ $
675
675
You can see that there is no difference between the branch we were on and the result of the merge.
676
676
677
677
This can often be useful to basically trick Git into thinking that a branch is already merged when doing a merge later on.
678
-
For example, say you branched off a ``release'' branch and have done some work on it that you will want to merge back into your ``master'' branch at some point.
679
-
In the meantime some bugfix on ``master'' needs to be backported into your `release` branch.
678
+
For example, say you branched off a `release` branch and have done some work on it that you will want to merge back into your `master` branch at some point.
679
+
In the meantime some bugfix on `master` needs to be backported into your `release` branch.
680
680
You can merge the bugfix branch into the `release` branch and also `merge -s ours` the same branch into your `master` branch (even though the fix is already there) so when you later merge the `release` branch again, there are no conflicts from the bugfix.
0 commit comments