forked from MarkLodato/visual-git-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrebase-onto.tex
More file actions
32 lines (28 loc) · 798 Bytes
/
rebase-onto.tex
File metadata and controls
32 lines (28 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\input{common.tex}
\begin{document}
\begin{tikzpicture}[main]
\boundingbox
\indexnode
\worknode
\commitTerminal cT at (-6,.75);
\commit a47c3 (A) -> cT;
\commit b325c (B) -> A;
\commit c10b9 (C) -> B;
\commit da985 (D) -> C;
\newcommit e918c (E) -> D;
\commit 169a6 (1) -> A;
\commit 2c33a (2) -> 1;
\oldbranch topic -> 2;
\oldHEAD -> old topic;
\branch master -> D;
\branch topic -> E;
\HEAD -> topic;
\node [cmd,right] at (1, 3.75) {git rebase --onto master 169a6};
\path [line]
(E) edge [bend left=20] (index)
(E) edge [bend left=30] (work)
(old HEAD label) edge [dashed, bend left=10] (HEAD label)
(2) edge [loosely dashed, bend right=40] (E)
;
\end{tikzpicture}
\end{document}