git-needs-push

Check synchronously if a git repository needs to push


Keywords
is, git, repository, repo, is-git, needs, push, needs-push, nodejs
License
MIT
Install
npm install git-needs-push@1.0.0

Documentation

git-needs-push

Check synchronously if a git repository needs to push

Installation

$ npm i git-needs-push --save

or

$ yarn add git-needs-push

Usage

const needsPush = require('git-needs-push');

needsPush(); // true or false of process.cwd()
needsPush('any/git/repo'); // true or false

LICENSE

MIT © Jan Peer Stöcklmair