table of contents
GIT-ROOT(1) | Git Extras | GIT-ROOT(1) |
NAME¶
git-root - show path of rootSYNOPSIS¶
git root OPTIONSDESCRIPTION¶
print the path for the root directory of git repoOPTIONS¶
-r, --relativeshow 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
AUTHOR¶
Written by spacewander <spacewanderlzx@gmail.com>REPORTING BUGS¶
<https://github.com/tj/git-extras/issues>SEE ALSO¶
<https://github.com/tj/git-extras>November 2016 |