mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
43 lines
683 B
Markdown
43 lines
683 B
Markdown
git-root(1) -- show path of root
|
|
========================================
|
|
|
|
## SYNOPSIS
|
|
|
|
`git root` [OPTIONS]
|
|
|
|
## DESCRIPTION
|
|
|
|
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
|
|
|
|
## AUTHOR
|
|
|
|
Written by spacewander <<spacewanderlzx@gmail.com>>
|
|
|
|
## REPORTING BUGS
|
|
|
|
<<https://github.com/tj/git-extras/issues>>
|
|
|
|
## SEE ALSO
|
|
|
|
<<https://github.com/tj/git-extras>>
|