我想在Python脚本的输出中包含当前的git哈希(作为生成该输出的代码的版本号).
如何在Python脚本中访问当前的git哈希?
python git git-hash
git ×1
git-hash ×1
python ×1