mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-06-20 17:03:09 +02:00
first commit for the new structure of directories of levels like as @schokotets suggestion
This commit is contained in:
parent
9caaddc06e
commit
b12d0e778f
207 changed files with 14 additions and 91 deletions
levels/low-level/en
21
levels/low-level/en/symref-create
Normal file
21
levels/low-level/en/symref-create
Normal file
|
@ -0,0 +1,21 @@
|
|||
[description]
|
||||
|
||||
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"!
|
||||
|
||||
[setup]
|
||||
|
||||
[setup goal]
|
||||
|
||||
BLOB=$(git hash-object -w --stdin)
|
||||
git update-ref refs/double "$BLOB"
|
||||
git symbolic-ref refs/rainbow refs/double
|
||||
|
||||
[win]
|
||||
|
||||
git symbolic-ref refs/rainbow
|
Loading…
Add table
Add a link
Reference in a new issue