mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 08:49:13 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
17
tldr/git-update-ref
Normal file
17
tldr/git-update-ref
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user