oh-my-git/levels/internals/puzzle-precious-blob/goal
2020-10-01 15:03:02 +02:00

7 lines
256 B
Text

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