resolve-git-branch
Resolves the currently checked out branch of the git repository in the current directory.
Last updated 7 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install resolve-git-branch 
SYNC missed versions from official npm registry.

resolve-git-branch build status

Resolves the currently checked out branch of the git repository in the current directory.

var branch = require('resolve-git-branch');

branch(function (err, branch) {
  if (err) return console.error(err);
  console.log(branch); // => master
})

Installation

npm install resolve-git-branch

API

resolveGitBranch(cb)

/**
 * Runs git command to resolve currently checked out branch and calls back with branch name.
 * 
 * @name resolveGitBranch
 * @function
 * @param {Function} cb function (err, branch) {}
 */

License

MIT

Current Tags

  • 0.1.1                                ...           latest (7 years ago)

2 Versions

  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |