1.1.22 • Published 9 years ago
promisify-git v1.1.22
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
- hasTag(tagName,options)
- addTag(tagName,options)
- updateTag(new_tagName,options)
- delTag(tagName,options)
- getTags(options)
branch
- hasBranch(branchName,options)
- addBranch(branchName,options)
- delBranch(branchName,options)
- updateBranch(oldBranch,newBranch,options)
- getBranch(options)
- getBranches(options)
continuing...
Good Library Companions
1.1.22
9 years ago
1.1.21
9 years ago
1.1.20
9 years ago
1.1.19
9 years ago
1.1.18
9 years ago
1.1.17
9 years ago
1.1.16
9 years ago
1.1.15
9 years ago
1.1.14
9 years ago
1.1.13
9 years ago
1.1.12
9 years ago
1.1.11
9 years ago
1.1.10
9 years ago
1.1.9
9 years ago
1.1.7
9 years ago
1.1.6
9 years ago
1.1.5
9 years ago
1.1.4
9 years ago
1.1.3
9 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago