📅  最后修改于: 2022-03-11 15:02:08.597000             🧑  作者: Mango
require('child_process').exec('git rev-parse HEAD', function(err, stdout) {
console.log('Last commit hash on this branch is:', stdout);
});