From 79aea4833f7a10fc789963166b34a98ed7b69f1b Mon Sep 17 00:00:00 2001 From: Ehab Alsharif <36003641+sanehab@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:58:34 +0300 Subject: [PATCH] git-update-ref: add page (#4373) --- pages/common/git-update-ref.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/common/git-update-ref.md 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}}`