File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1414,6 +1414,36 @@ \subsection{\gitcmd{merge}}
1414
1414
It is not a merge commit, and commits \grefspec {C} and \grefspec {E} are not introduced into the history of \gbranch {master}.
1415
1415
\end {frame }
1416
1416
1417
+ \begin {frame }
1418
+ \frametitle {Merging in a reachable commit has no effect}
1419
+
1420
+ \begin {figure }
1421
+ \centering
1422
+ \begin {tikzpicture }
1423
+ \gitDAG {
1424
+ A -- B -- {
1425
+ D -- F,
1426
+ C -- E
1427
+ }
1428
+ };
1429
+ \gitbranch {master}
1430
+ {above=of F} {F}
1431
+ \gitbranch {revert}
1432
+ {above=of B} {B}
1433
+ \gitbranch {topic}
1434
+ {right=of E} {E}
1435
+ \gitHEAD
1436
+ {left=of master} {master}
1437
+ \end {tikzpicture }
1438
+ \end {figure }
1439
+
1440
+ Attempting to merge the \gbranch {revert} branch into the \gbranch {master} branch will have no effect because there are no new commits to introduce.
1441
+ \vfill
1442
+ \begin {block }{Non-destructively reverting a branch}
1443
+ You cannot non-destructively revert a branch to a previous state by doing the above. Use \gitcmd {revert} instead.
1444
+ \end {block }
1445
+ \end {frame }
1446
+
1417
1447
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1418
1448
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1419
1449
\section {Remote Repositories }
You can’t perform that action at this time.
0 commit comments