Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

node get git hash

require('child_process').exec('git rev-parse HEAD', function(err, stdout) {
    console.log('Last commit hash on this branch is:', stdout);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #git #hash
ADD COMMENT
Topic
Name
5+4 =