mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-05 05:02:02 +02:00
Add levels for refs and symrefs
This commit is contained in:
parent
cb2bb767db
commit
9ba485b789
7 changed files with 32 additions and 0 deletions
levels/06-symref
9
levels/06-symref/description
Normal file
9
levels/06-symref/description
Normal file
|
@ -0,0 +1,9 @@
|
|||
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>
|
||||
|
||||
Usually, you will only encounter a special symbolic ref called "HEAD". This ref is special in that it doesn't start with "refs/"!
|
||||
|
||||
Try pointing HEAD to the refs in this repository!
|
Loading…
Add table
Add a link
Reference in a new issue