Files
tldr/pages.fr/common/git-update-ref.md

13 lines
383 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git update-ref
> Commande Git pour créer, mettre à jour et supprimer des références Git.
> Plus d'informations : <https://git-scm.com/docs/git-update-ref>.
- Supprimer une référence, utile pour la réinitialisation du premier commit :
`git update-ref -d {{HEAD}}`
- Mettre a jour une référence avec un message :
`git update-ref -m {{message}} {{HEAD}} {{4e95e05}}`