Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated rebase transplant graphics to show orig now-unreachable commits

  • Loading branch information...
commit 27bd359e8379c5cd635fe74719516d5b0d2aa44e 1 parent 627118c
Seth House authored
BIN  cars_2012-04-27_git/img/transplant.pdf
View
Binary file not shown
BIN  cars_2012-04-27_git/img/transplanted.pdf
View
Binary file not shown
BIN  cars_2012-04-27_git/presentation.pdf
View
Binary file not shown
18 cars_2012-04-27_git/presentation.rst
View
@@ -809,28 +809,26 @@ Demonstration
% git init testrepo
- % cd ./testrepo
+ % cd testrepo
- % for commit in A B C; do touch $commit && git add $commit && git commit -m "Added $commit" && git tag $commit; done
+ % for commit in A B C; do touch $commit && git add $commit && git commit -m "Added $commit"; done
- % git checkout -b featureA B
+ % git checkout -b featureA HEAD~1
- % for commit in D E F; do touch $commit && git add $commit && git commit -m "Added $commit" && git tag $commit; done
+ % for commit in D E F; do touch $commit && git add $commit && git commit -m "Added $commit"; done
- % git checkout -b featureB E
+ % git checkout -b featureB HEAD~1
- % for commit in G H; do touch $commit && git add $commit && git commit -m "Added $commit" && git tag $commit; done
+ % for commit in G H; do touch $commit && git add $commit && git commit -m "Added $commit"; done
% git graph-dag master featureA featureB | dot -Tpng | display
- % git rebase --onto master E featureB
+ % git rebase --onto master HEAD~2 featureB
First, rewinding head to replay your work on top of it...
Applying: Added G
Applying: Added H
- % git graph-dag master featureA featureB | dot -Tpng | display
-
- % git graph-dag master featureA featureB H -- | dot -Tpng | display
+ % git graph-dag master featureA featureB ORIG_HEAD | dot -Tpng | display
Demonstration
-------------
Please sign in to comment.
Something went wrong with that request. Please try again.