oh-my-git/levels/tree-read/start

16 lines
240 B
Text
Raw Normal View History

2020-09-15 22:35:14 +02:00
EMPTY_TREE=$(git write-tree)
echo "file 1" > file1
echo "file 2" > file2
git add .
git write-tree
rm *
echo "file A" > fileA
echo "file B" > fileB
echo "file C" > fileC
git add .
TRIPLE_TREE=$(git write-tree)
git read-tree "$EMPTY_TREE"