mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 20:47:53 +00:00
Update cheatsheets
This commit is contained in:
17
git-update-ref
Normal file
17
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