File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
150
150
* [ blame on certain range] ( #blame-on-certain-range )
151
151
* [ Show a Git logical variable.] ( #show-a-git-logical-variable )
152
152
* [ Preformatted patch file.] ( #preformatted-patch-file )
153
+ * [ Get the repo name.] ( #get-the-repo-name )
153
154
154
155
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
155
156
<!-- @doxie.inject end toc -->
@@ -1026,5 +1027,10 @@ git var -l | <variable>
1026
1027
git format-patch -M upstream..topic
1027
1028
```
1028
1029
1030
+ ## Get the repo name.
1031
+ ``` sh
1032
+ git rev-parse --show-toplevel
1033
+ ```
1034
+
1029
1035
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
1030
1036
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 440
440
}, {
441
441
"title" : " Preformatted patch file." ,
442
442
"tip" : " git format-patch -M upstream..topic"
443
+ }, {
444
+ "title" : " Get the repo name." ,
445
+ "tip" : " git rev-parse --show-toplevel"
443
446
}]
You can’t perform that action at this time.
0 commit comments