项目的构建脚本,git rev-parse --short HEAD可以获得当前的commit hash.
有什么方便的方法,如果当前的工作目录有修改,能在commit hash后面多输出一个+号?
项目的构建脚本,git rev-parse --short HEAD可以获得当前的commit hash.
有什么方便的方法,如果当前的工作目录有修改,能在commit hash后面多输出一个+号?
|
adoyleJun 10, 2015
1
[git prompt](https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh) 如何?
|