git-root1
Show path of root
Usage
git root
OPTIONS
Overview
print the path for the root directory of git repo
Options
-r, --relative
show the relative path from root directory to current directory
Examples
$ cd .../git-extras/bin $ git root -r bin/ $ git root /home/.../git-extras $ cd `git root` $ pwd /home/.../git-extras # then we can $ git add . && git commit
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.