Git-Note icon indicating copy to clipboard operation
Git-Note copied to clipboard

nodejs get last commit hash

Open chuanxd opened this issue 6 years ago • 0 comments

require('child_process').exec('git rev-parse HEAD', function(err, stdout) {
    console.log('Last commit hash on this branch is:', stdout);
})

chuanxd avatar May 30 '18 06:05 chuanxd