oh-my-git/levels/bottom-up/ref-create/description

10 lines
478 B
Text
Raw Normal View History

2020-09-15 22:35:14 +02:00
Let's take a look at "refs" (short for "references")! Refs are not objects, but rather very simple *pointers* to objects! They can help you keep track of what's where.
2020-09-13 21:55:51 +02:00
You can create or update a ref with
git update-ref refs/<refname> <newvalue>
2020-09-15 22:35:14 +02:00
Make sure to always start a ref's name with "refs/"! That's a convention that helps Git find all refs you create. If you forget the "refs/", you will not see the ref.
2020-09-13 21:55:51 +02:00
Create refs that point to all objects in this repository!