Check synchronously if a git repository needs to pull.
$ npm i git-needs-pull
or
$ yarn add git-needs-pull
const needsPull = require('git-needs-pull');
needsPull(); // true or false of process.cwd()
needsPull('any/git/repo'); // true or false
MIT © Jan Peer Stöcklmair