1GIT-ROOT(1) Git Extras GIT-ROOT(1)
2
3
4
6 git-root - show path of root
7
9 git root OPTIONS
10
12 print the path for the root directory of git repo
13
15 -r, --relative
16
17 show the relative path from root directory to current directory
18
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
32 Written by spacewander <spacewanderlzx@gmail.com>
33
35 <https://github.com/tj/git-extras/issues>
36
38 <https://github.com/tj/git-extras>
39
40
41
42 October 2017 GIT-ROOT(1)