Get the repo name.

This commit is contained in:
Hemanth.HM 2017-01-08 17:53:01 +05:30
parent 5d23b75504
commit e88ee1e1c9
2 changed files with 9 additions and 0 deletions

View File

@ -150,6 +150,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [blame on certain range](#blame-on-certain-range)
* [Show a Git logical variable.](#show-a-git-logical-variable)
* [Preformatted patch file.](#preformatted-patch-file)
* [Get the repo name.](#get-the-repo-name)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -1026,5 +1027,10 @@ git var -l | <variable>
git format-patch -M upstream..topic
```
## Get the repo name.
```sh
git rev-parse --show-toplevel
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -440,4 +440,7 @@
}, {
"title": "Preformatted patch file.",
"tip": "git format-patch -M upstream..topic"
}, {
"title": "Get the repo name.",
"tip": "git rev-parse --show-toplevel"
}]