1GIT-ROOT(1)                       Git Extras                       GIT-ROOT(1)
2
3
4

NAME

6       git-root - show path of root
7

SYNOPSIS

9       git root OPTIONS
10

DESCRIPTION

12       print the path for the root directory of git repo
13

OPTIONS

15       -r, --relative
16
17       show the relative path from root directory to current directory
18

EXAMPLES

20       $ cd .../git-extras/bin
21       $ git root -r
22       bin/
23       $ git root
24       /home/.../git-extras
25       $ cd `git root`
26       $ pwd
27       /home/.../git-extras
28       # then we can
29       $ git add . && git commit
30

AUTHOR

32       Written by spacewander <spacewanderlzx@gmail.com>
33

REPORTING BUGS

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

SEE ALSO

38       <https://github.com/tj/git-extras>
39
40
41
42                                 October 2017                      GIT-ROOT(1)
Impressum