commands.sh

git root

all

Print the root directory of the current Git repository. Part of `git-extras`.

More info →

Options (1)

-r, --relativeboolean

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

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

Examples (2)

Print the absolute path of the current Git repository

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

git root [-r|--relative]
made by @shridhargupta | data from tldr-pages