Skip to content

Commit 91ae258

Browse files
committed
Merge branch 'pr/851' into chore/typos
2 parents 9562e1c + 0037161 commit 91ae258

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/git-version.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Check if git is installed
1+
## Check if Git is installed
22

33
To check if `git` (or the `customBinary` of your choosing) is accessible, use the
4-
`git.version()` api:
4+
`git.version()` API:
55

66
```typescript
77
import { simpleGit } from 'simple-git';
@@ -11,10 +11,10 @@ if (!installed) {
1111
throw new Error(`Exit: "git" not available.`);
1212
}
1313

14-
// ... continue using git commands here
14+
// ... continue using Git commands here
1515
```
1616

17-
## Check for a specific version of git
17+
## Check for a specific version of Git
1818

1919
Using the `git.version()` interface, you can query for the current `git` version
2020
information split by `major`, `minor` and `patch`:
@@ -28,5 +28,5 @@ if (lt(String(versionResult), '2.1.0')) {
2828
throw new Error(`Exit: "git" must be at least version 2.1.0.`);
2929
}
3030

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
3232
```

0 commit comments

Comments
 (0)