Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 787 Bytes

readme.md

File metadata and controls

41 lines (30 loc) · 787 Bytes

Simple Git With Bin

Fork from simple-git project. Support to indicate the Git bin path.

Installation

npm install simple-git-with-bin

Dependencies

no

Usage

Include into your app using:

const gitWithBin = require('simple-git-with-bin')
const git = gitWithBin(workingDirPath, { git: binPath })
git.status((err, status) => {
  if (!err) {
    console.log(status)
  }
})

set workingDirPath to empty string, defaulting to the current directory.

const gitWithBin = require('simple-git-with-bin')
const git = gitWithBin('', { git: binPath })
git.status((err, status) => {
  if (!err) {
    console.log(status)
  }
})

For more info, refer to the simple-git documentation