git root
Print the root directory of the current Git repository.
Part of `git-extras`.
- 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 --relative
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).