oh-my-git/levels/internals/ref-move/start

11 lines
255 B
Text
Raw Normal View History

2020-09-15 22:35:14 +02:00
echo hello > hello
echo world > world
BLOB1=$(git hash-object -w hello)
BLOB2=$(git hash-object -w world)
git add .
TREE=$(git write-tree)
COMMIT=$(git commit-tree $TREE -m "Initial commit")
git update-ref refs/a "$BLOB1"
git update-ref refs/b "$COMMIT"