git-branch-away

0.0.20 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i git-branch-away

Weekly Downloads

24

Version

0.0.20

License

none

Unpacked Size

4.17 kB

Total Files

4

Last publish

Collaborators

  • guy.mograbi