Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created November 5, 2017 04:51
Show Gist options
  • Save zzarcon/8d9db41ba71298fbfbf6e2ffb4de5d6b to your computer and use it in GitHub Desktop.
Save zzarcon/8d9db41ba71298fbfbf6e2ffb4de5d6b to your computer and use it in GitHub Desktop.
const {promisify} = require('util');
const exec = promisify(require('child_process').exec);
exec('git diff --name-only origin/master').then(({stdout}) => console.log(stdout))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment