1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-25 20:55:25 +02:00

git-update-ref: add page (#4373)

This commit is contained in:
Ehab Alsharif 2020-10-01 21:58:34 +03:00 committed by GitHub
parent 36d3925d55
commit 79aea4833f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,12 @@
# 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}}`