mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-27 20:29:22 +02:00
Allow multiple level sets, pull out default order into "sequence" file
This commit is contained in:
parent
a9f096636a
commit
5031009dd5
96 changed files with 37 additions and 29 deletions
levels/bottom-up/symref-create
7
levels/bottom-up/symref-create/description
Normal file
7
levels/bottom-up/symref-create/description
Normal file
|
@ -0,0 +1,7 @@
|
|||
Instead of pointing directly to objects, refs can also point to other refs!
|
||||
|
||||
When that happens, they are called "symbolic refs". You can create or update a symbolic ref using
|
||||
|
||||
git symbolic-ref <name> <ref>
|
||||
|
||||
Create a symbolic ref called "refs/rainbow"!
|
3
levels/bottom-up/symref-create/goal
Normal file
3
levels/bottom-up/symref-create/goal
Normal file
|
@ -0,0 +1,3 @@
|
|||
BLOB=$(git hash-object -w --stdin)
|
||||
git update-ref refs/double "$BLOB"
|
||||
git symbolic-ref refs/rainbow refs/double
|
0
levels/bottom-up/symref-create/start
Normal file
0
levels/bottom-up/symref-create/start
Normal file
1
levels/bottom-up/symref-create/win
Normal file
1
levels/bottom-up/symref-create/win
Normal file
|
@ -0,0 +1 @@
|
|||
git symbolic-ref refs/rainbow
|
Loading…
Add table
Add a link
Reference in a new issue