commands.sh

git update-ref

all

Git command for creating, updating, and deleting Git refs.

More info →

Examples (2)

Delete a ref, useful for soft resetting the first commit

Update ref with a message

git update-ref -m message HEAD 4e95e05
made by @shridhargupta | data from tldr-pages