git-root

Print the root directory of the current Git repository.

TLDR

Print the absolute path of the current Git repository

$ git root
copy

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

$ git root --relative
copy

Copied to clipboard
Dodo Farming