tldr/pages.it/common/git-rev-parse.md
Francesco Franchina 28c4d26221
pages.it/*: update path placeholders and "directory" translations (#9031)
- Replace "al" -> "del", "alla" -> "della", etc. in command paths
- Replace all instances of "cartella" with "directory"
- Update contributing-guides/translation-templates/common-arguments.md to
  reflect these changes

Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Marco Bonelli <marco@mebeim.net>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2022-10-20 15:26:58 +02:00

373 B

git rev-parse

Mostra i metadati relativi a specifiche revisioni. Maggiori informazioni: https://git-scm.com/docs/git-rev-parse.

  • Mostra l'hash del commit di un ramo:

git rev-parse {{nome_ramo}}

  • Mostra il nome del ramo corrente:

git rev-parse --abbrev-ref {{HEAD}}

  • Mostra il percorso assoluto della directory di root:

git rev-parse --show-toplevel