FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/example/fetch.js at master · mildsunrise/nodegit · GitHub
mildsunrise
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
example
/
fetch.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 389 Bytes
Breadcrumbs
nodegit
/
example
/
fetch.js
Copy path
File metadata and controls
17 lines (13 loc) · 389 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var
git
=
require
(
'../'
)
,
path
=
require
(
'path'
)
;
git
.
Repo
.
open
(
path
.
resolve
(
__dirname
,
'../.git'
)
,
function
(
error
,
repo
)
{
if
(
error
)
throw
error
;
var
remote
=
repo
.
getRemote
(
"origin"
)
;
remote
.
connect
(
0
,
function
(
error
)
{
if
(
error
)
throw
error
;
remote
.
download
(
null
,
function
(
error
)
{
if
(
error
)
throw
error
;
console
.
log
(
"It worked!"
)
;
}
)
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL