mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-03 19:04:40 +01:00
10 lines
230 B
Text
10 lines
230 B
Text
|
echo foo > foo
|
||
|
BLOB=$(git hash-object -w foo)
|
||
|
echo bar > bar
|
||
|
git add .
|
||
|
git commit -m "Initial commit"
|
||
|
echo blabber >> bar
|
||
|
git commit -a -m "Second commit"
|
||
|
git update-ref refs/important HEAD
|
||
|
git update-ref refs/interesting "$BLOB"
|