git-update-ref: add page (#4373)
This commit is contained in:
12
pages/common/git-update-ref.md
Normal file
12
pages/common/git-update-ref.md
Normal 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}}`
|
Reference in New Issue
Block a user