mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 00:02:07 +02:00
12 lines
317 B
Markdown
12 lines
317 B
Markdown
# git update-ref
|
|
|
|
> Git command for creating, updating, and deleting Git refs.
|
|
> More information: <https://git-scm.com/docs/git-update-ref>.
|
|
|
|
- Delete a ref, useful for soft resetting the first commit:
|
|
|
|
`git update-ref -d {{HEAD}}`
|
|
|
|
- Update ref with a message:
|
|
|
|
`git update-ref -m {{message}} {{HEAD}} {{4e95e05}}`
|