File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- ## Check if git is installed
1
+ ## Check if Git is installed
2
2
3
3
To check if ` git ` (or the ` customBinary ` of your choosing) is accessible, use the
4
- ` git.version() ` api :
4
+ ` git.version() ` API :
5
5
6
6
``` typescript
7
7
import { simpleGit } from ' simple-git' ;
@@ -11,10 +11,10 @@ if (!installed) {
11
11
throw new Error (` Exit: "git" not available. ` );
12
12
}
13
13
14
- // ... continue using git commands here
14
+ // ... continue using Git commands here
15
15
```
16
16
17
- ## Check for a specific version of git
17
+ ## Check for a specific version of Git
18
18
19
19
Using the ` git.version() ` interface, you can query for the current ` git ` version
20
20
information split by ` major ` , ` minor ` and ` patch ` :
@@ -28,5 +28,5 @@ if (lt(String(versionResult), '2.1.0')) {
28
28
throw new Error (` Exit: "git" must be at least version 2.1.0. ` );
29
29
}
30
30
31
- // ... continue using git commands here compatible with 2.1.0 or higher
31
+ // ... continue using Git commands here that are compatible with 2.1.0 or higher
32
32
```
You can’t perform that action at this time.
0 commit comments