get the latest git commit SHA-1 in a repository js
require('child_process').exec('git rev-parse HEAD', function(err, stdout) {
console.log('Last commit hash on this branch is:', stdout);
});
Are there any code examples left?
New code examples in category Javascript