Skip to content

Commit

Permalink
git-update-ref: add page (#4373)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanehab authored Oct 1, 2020
1 parent 36d3925 commit 79aea48
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pages/common/git-update-ref.md
Original file line number Diff line number Diff line change
@@ -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}}`

0 comments on commit 79aea48

Please sign in to comment.