1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 01:26:00 +02:00
tldr/pages/common/git-root.md
Managor 36735f324a
common*: refresh old pages part 8 (#16293)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2025-05-03 05:57:20 +03:00

376 B

git root

Print the root directory of the current Git repository. Part of git-extras. More information: https://github.com/tj/git-extras/blob/master/Commands.md#git-root.

  • Print the absolute path of the current Git repository:

git root

  • Print the current working directory relative to the root of the current Git repository:

git root {{[-r|--relative]}}