1.1.22 • Published 8 years ago

promisify-git v1.1.22

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

promisify-git

This library aims to operate git repo locally in promisifying way.

if you get any bugs or improvements, please check this repo and make it better. Making a pull request is preferred.

install

npm install promisify-git -S

usage

var git = require('promisify-git');

git
  .getBranch()
  .then(function(branch) {
    console.log(branch);
  })
  .catch(function(e) {
    console.log(e);
  })

git
  .getTags()
  .then(function(tags) {
    console.log(tags);
  })
  .catch(function(e) {
    console.log(e);
  })

//you can specify any git working directory with parameter **cwd**
git
  .getBranches({
    gcwd: gcwd //optional, a specific git working directory , default is process.cwd
  })
  .then(function(branches) {
    console.log(branches);
  })
  .catch(function(e) {
    console.log(e);
  })

API

tag

branch

continuing...

Good Library Companions

1.1.22

8 years ago

1.1.21

8 years ago

1.1.20

8 years ago

1.1.19

8 years ago

1.1.18

8 years ago

1.1.17

8 years ago

1.1.16

8 years ago

1.1.15

8 years ago

1.1.14

8 years ago

1.1.13

8 years ago

1.1.12

8 years ago

1.1.11

8 years ago

1.1.10

8 years ago

1.1.9

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago