File: git-root.1

package info (click to toggle)
git-extras 6.5.0-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,852 kB
  • sloc: sh: 3,872; makefile: 126
file content (45 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-ROOT" "1" "October 2017" "" "Git Extras"
.
.SH "NAME"
\fBgit\-root\fR \- show path of root
.
.SH "SYNOPSIS"
\fBgit root\fR \fIOPTIONS\fR
.
.SH "DESCRIPTION"
print the path for the root directory of git repo
.
.SH "OPTIONS"
\-r, \-\-relative
.
.P
show the relative path from root directory to current directory
.
.SH "EXAMPLES"
.
.nf

$ 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
.
.fi
.
.SH "AUTHOR"
Written by spacewander <\fIspacewanderlzx@gmail\.com\fR>
.
.SH "REPORTING BUGS"
<\fIhttps://github\.com/tj/git\-extras/issues\fR>
.
.SH "SEE ALSO"
<\fIhttps://github\.com/tj/git\-extras\fR>