Get current commit id of Git and update to package.json
Get the current Git commit id with git rev-parse --short HEAD and write it into package.json automatically from an npm predev script in a Node.js project.
Get the current Git commit id with git rev-parse --short HEAD and write it into package.json automatically from an npm predev script in a Node.js project.