Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 602 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 602 Bytes

git-needs-push

Build Status

Check synchronously if a git repository needs to push. If a branch is just local it will be true (as a push is required)

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