0.0.20 • Published 3 years ago
git-branch-away v0.0.20
Git Branch Away
Quickly get branch information for your repository
Usage
const gitBranches = require('git-branch-away');
gitBranches.list(/* optional cwd */); // return {current:, other: all:} object.
More function you can use for more specific info
gitBranches.init(); // will go through the information. you need to call this on every checkout etc..
gitBranches.current(); // current branch
gitBranches.isClean();
gitBranches.other();
gitBranches.all();
gitBranches.root(); // gets the root of git repository
gitBranches.getDefaultPrBase();