1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 00:02:07 +02:00
tldr/pages.it/common/git-update-ref.md
2021-01-08 13:09:54 +00:00

12 lines
340 B
Markdown

# git update-ref
> Crea, aggiorna e cancella riferimenti Git.
> Maggiori informazioni: <https://git-scm.com/docs/git-update-ref>.
- Cancella un riferimento, utile per resettare il primo commit in modo soft:
`git update-ref -d {{HEAD}}`
- Aggiorna un riferimento con un messaggio:
`git update-ref -m {{messaggio}} {{HEAD}} {{4e95e05}}`