oh-my-git/levels/internals/puzzle-precious-blob/goal

8 lines
256 B
Text
Raw Normal View History

2020-09-16 14:16:38 +02:00
BLOB=$(echo "I am precious" | git hash-object -w --stdin)
git update-index --add --cacheinfo 100644,$BLOB,a
git write-tree
git update-index --force-remove a
git update-index --add --cacheinfo 100644,$BLOB,b
git write-tree
git update-index --force-remove b