Git - 在单个命令中提交和标记
Git - commit and tag in a single command
我正在按以下方式在 git 中进行提交:
git commit -m "message"
然后我添加一个标签
git tag -a v1.2 9fceb02
是否可以在一条命令中完成此操作?
创建一个commitag.bat文件,将其放入系统PATH文件夹之一。
git commit -m %1
git tag -a %2
运行commitag "message" v1.2
我正在按以下方式在 git 中进行提交:
git commit -m "message"
然后我添加一个标签
git tag -a v1.2 9fceb02
是否可以在一条命令中完成此操作?
创建一个commitag.bat文件,将其放入系统PATH文件夹之一。
git commit -m %1
git tag -a %2
运行commitag "message" v1.2