Skip to content

Instantly share code, notes, and snippets.

@richo
Created January 7, 2013 23:44
Show Gist options
  • Save richo/4479685 to your computer and use it in GitHub Desktop.
Save richo/4479685 to your computer and use it in GitHub Desktop.
elektra ± git co -b trash/empty_dir
Switched to a new branch 'trash/empty_dir'
elektra ± git ls-tree HEAD\^{tree}
100644 blob 91078accddd4cdc686f97672bb70d1ffb94e1255 .gitignore
100644 blob 6ea3a712cb7e9e60234418caa785401edea1e8c4 LICENSE
100644 blob be1e7472fb20138915dbebdd1482f713db858ee5 Makefile
100644 blob 9194c1a82c554a752e3a9556839f2eca1f3e2ee4 PROTOCOL.md
100644 blob c8830254f0e344f9ee48bcdf9eef2e2553a3bf68 README.md
100644 blob 43a676de7ea9c8d68cd454266d91ca93a2095e51 TODO.md
040000 tree d6425782e54445a26ad8ce734fd8dbdf3eee6bf0 groundstation
100644 blob 9d146e058abda45f212b81d20dae9f9e4b264cc8 requirements.txt
100644 blob 32b5c3513591f6898cce94be3cd0326a2f4fdd4c setup.py
100644 blob e4427c1b866e5468a96f44ceea724cdc7f8fdad8 stationd
040000 tree dd865850a99212de4289dd461e455d484dffbd61 test
elektra ± git ls-tree HEAD\^{tree} > new_tree
elektra ± git mktree
4b825dc642cb6eb9a060e54bf8d69288fbee4904
elektra ± vim new_tree
elektra ± git mktree < new_tree
64974c529be885410c6ef29f96e713bcb42b86c5
elektra ± echo "Create an empty tree\?\!" git commit-tree 64974c529be885410c6ef29f96e713bcb42b86c5 -p `git rev-parse HEAD`
Create an empty tree\?! git commit-tree 64974c529be885410c6ef29f96e713bcb42b86c5 -p df906f0f82e9964b236df94ab8011125a4bdee1f
elektra ± echo "Create an empty tree\?\!" | git commit-tree 64974c529be885410c6ef29f96e713bcb42b86c5 -p `git rev-parse HEAD`
cb3740618180ffd987b2a875034620d5785c0c6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment