Skip to content

gavinning/git-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

git-commands

nodejs操作git
Execute git command using Node.js

Install

npm i git-commands --save

Usage

const Git = require('git-commands')
const git = new Git({ reps: 'your git repository path' })
// status
console.log( git.command('status') )

// pull
console.log( git.command('pull') )

// checkout 
console.log( git.command('checkout master') )

// push
console.log( git.command('push origin master') )

About

nodejs操作git | Execute git command using Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published