https://github.com/jpeer264/node-git-needs-push
Check synchronously if a git repository needs to push
https://github.com/jpeer264/node-git-needs-push
git is-git needs-push nodejs push
Last synced: 21 days ago
JSON representation
Check synchronously if a git repository needs to push
- Host: GitHub
- URL: https://github.com/jpeer264/node-git-needs-push
- Owner: JPeer264
- License: mit
- Created: 2017-05-14T19:51:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-15T16:02:59.000Z (about 9 years ago)
- Last Synced: 2025-02-24T21:37:44.147Z (over 1 year ago)
- Topics: git, is-git, needs-push, nodejs, push
- Language: JavaScript
- Size: 53.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-needs-push
[](https://travis-ci.org/JPeer264/node-git-needs-push)
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
```sh
$ npm i git-needs-push --save
```
or
```sh
$ yarn add git-needs-push
```
## Usage
```js
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](https://www.jpeer.at)