mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-06-10 21:38:26 +02:00
Rename chapters into "internals" and "intro"
This commit is contained in:
parent
70fe577788
commit
f3ff5c5147
97 changed files with 0 additions and 0 deletions
levels/internals/symref-create
7
levels/internals/symref-create/description
Normal file
7
levels/internals/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/internals/symref-create/goal
Normal file
3
levels/internals/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/internals/symref-create/start
Normal file
0
levels/internals/symref-create/start
Normal file
1
levels/internals/symref-create/win
Normal file
1
levels/internals/symref-create/win
Normal file
|
@ -0,0 +1 @@
|
|||
git symbolic-ref refs/rainbow
|
Loading…
Add table
Add a link
Reference in a new issue