git-revision

Is there a way to refer to a child commit of the current detached HEAD?

心不动则不痛 提交于 2019-12-11 03:44:47
问题 I know how to refer to a parent commit as HEAD^ . But is it possible to refer to a child commit in a similar way? 回答1: The answer is both no and yes, or perhaps "this question makes no sense", depending on what you mean . Your question refers specifically to "a child commit of the current detached HEAD". This is why the question makes no sense, at least not without additional information. As Tim Biegeleisen noted in a comment, when you check out by branch name, this puts you on the tip of the

Getting git-revision hash with webpack

≯℡__Kan透↙ 提交于 2019-12-06 19:46:16
问题 I'm trying to create archive with webpack with suffix by git-revision. Could you tell me please what is good way to do it? 回答1: You can get git revision in webpack in this way: var childProcess = require('child_process'), VERSION = childProcess.execSync('git rev-parse HEAD').toString(); 回答2: You can combine git-rev, arciverjs and on-build-webpack plugins for these purposes https://www.npmjs.com/package/git-rev http://archiverjs.com/docs/ https://www.npmjs.com/package/on-build-webpack var

Getting git-revision hash with webpack

喜夏-厌秋 提交于 2019-12-05 01:17:05
I'm trying to create archive with webpack with suffix by git-revision. Could you tell me please what is good way to do it? bolelamx You can get git revision in webpack in this way: var childProcess = require('child_process'), VERSION = childProcess.execSync('git rev-parse HEAD').toString(); You can combine git-rev, arciverjs and on-build-webpack plugins for these purposes https://www.npmjs.com/package/git-rev http://archiverjs.com/docs/ https://www.npmjs.com/package/on-build-webpack var childProcess = require('child_process'), VERSION = childProcess.execSync('git rev-parse HEAD').toString();