We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b95d99 commit 1a378f0Copy full SHA for 1a378f0
index.md
@@ -87,6 +87,8 @@ Let's learn how to clone a repository. Create a file named `clone.js`,
87
and add the following code:
88
89
``` javascript
90
+var Git = require("nodegit");
91
+
92
Git.Clone("https://github.com/nodegit/nodegit", "nodegit").then(function(repository) {
93
// Work with the repository object here.
94
});
@@ -100,6 +102,8 @@ Let's learn how to open a repository. Create a file named `open.js`,
100
102
101
103
104
105
106
107
var getMostRecentCommit = function(repository) {
108
return repository.getBranchCommit("master");
109
};
0 commit comments