oh-my-git/levels/06-symref/description

10 lines
486 B
Text
Raw Normal View History

2020-09-13 21:55:51 +02:00
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/"! You might already have seen it in the other levels - it's the only thing that's always there!
2020-09-13 21:55:51 +02:00
Try pointing HEAD to the refs in this repository!