Dapatkan Git Commit SHA-1 terbaru di JS repositori

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