Created
July 25, 2013 13:24
-
-
Save daniel-fanjul-alcuten/6079562 to your computer and use it in GitHub Desktop.
create snapshot of HEAD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cp .git/index .git/index2 | |
$ touch a | |
$ GIT_INDEX_FILE=.git/index2 git add a | |
$ GIT_INDEX_FILE=.git/index2 git write-tree | |
833db9db6007ba78fc3e5e10ccde7a1350bd6e1d | |
$ git commit-tree 833db9db6007ba78fc3e5e10ccde7a1350bd6e1d -p HEAD | |
foo | |
816a78f5fb38fddc4c05259e61c360f47425b1fb | |
$ d 816a78f5fb38fddc4c05259e61c360f47425b1fb | |
diff --git c/a w/a | |
deleted file mode 100644 | |
index e69de29..0000000 | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment