Skip to content

Commit e88ee1e

Browse files
committed
Get the repo name.
1 parent 5d23b75 commit e88ee1e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
150150
* [blame on certain range](#blame-on-certain-range)
151151
* [Show a Git logical variable.](#show-a-git-logical-variable)
152152
* [Preformatted patch file.](#preformatted-patch-file)
153+
* [Get the repo name.](#get-the-repo-name)
153154

154155
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
155156
<!-- @doxie.inject end toc -->
@@ -1026,5 +1027,10 @@ git var -l | <variable>
10261027
git format-patch -M upstream..topic
10271028
```
10281029

1030+
## Get the repo name.
1031+
```sh
1032+
git rev-parse --show-toplevel
1033+
```
1034+
10291035
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
10301036
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,4 +440,7 @@
440440
}, {
441441
"title": "Preformatted patch file.",
442442
"tip": "git format-patch -M upstream..topic"
443+
}, {
444+
"title": "Get the repo name.",
445+
"tip": "git rev-parse --show-toplevel"
443446
}]

0 commit comments

Comments
 (0)