DOKK / manpages / debian 10 / git-extras / git-root.1.en
GIT-ROOT(1) Git Extras GIT-ROOT(1)

git-root - show path of root

git root OPTIONS

print the path for the root directory of git repo

-r, --relative

show the relative path from root directory to current directory

$ 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

Written by spacewander <spacewanderlzx@gmail.com>

<https://github.com/tj/git-extras/issues>

<https://github.com/tj/git-extras>

September 2018