Skip to content

Commit

Permalink
git-update-ref: add page
Browse files Browse the repository at this point in the history
  • Loading branch information
sanehab authored Sep 30, 2020
1 parent df3ba75 commit 8ef536f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pages/common/git-update-ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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, usefull for soft resetting the first commit:

`git update-ref -d HEAD`

- Update ref with a message:

`git update-ref -m "some message" HEAD 4e95e05`

0 comments on commit 8ef536f

Please sign in to comment.