diff --git a/pages/common/git-update-ref.md b/pages/common/git-update-ref.md new file mode 100644 index 00000000000000..102599451f808c --- /dev/null +++ b/pages/common/git-update-ref.md @@ -0,0 +1,12 @@ +# git update-ref + +> Git command for creating, updating, and deleting git refs. +> More information: . + +- 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}}`