You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NodeGit can be quickly and painlessly installed via NPM:
51
+
52
+
```bash
53
+
npm install nodegit
19
54
```
20
55
21
-
NodeGit can be installed using npm, the node package manager. If you don’t have node installed on your machine, you can download and install the node binaries for your OS. Once node is installed, open your Terminal and install NodeGit.
56
+
For more comprehensive installation techniques, check out the [Install Guides](
57
+
/guides/install
58
+
)
22
59
23
-
```bash
24
-
$ npm install nodegit
60
+
## <aname="include-library"></a>Include library
61
+
62
+
You simply need to require NodeGit in your project to start using it.
63
+
64
+
```javascript
65
+
var Git =require("nodegit");
25
66
```
26
67
27
68
## <aname="cloning-a-repository"></a>Cloning a Repository
28
69
29
-
First, let’s learn how to clone a repository. Let’s create a file named `clone.js`, and input the following code.
30
-
31
-
```js
32
-
var NodeGit =require("nodegit");
33
-
34
-
// Clone a given repository into a specific folder.
0 commit comments