Answers for "get the latest git commit SHA-1 in a repository js"

0

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);
});
Posted by: Guest on February-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language