我如何在 Linux 中将环境变量添加到我的提交消息中?
VERSION="1.0.0"
git commit -m "we add version " + $VERSION + " and that's it"
但这似乎行不通。谁能帮我解决这个问题?
最佳答案
VERSION="1.0.0"
git commit -m "we add version $VERSION and that's it"
无需使用 +
连接字符串,保留双引号内的空格。
关于git - 添加环境变量以提交消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46342375/