【发布时间】:2012-12-14 06:28:02
【问题描述】:
以下是 redgates 源代码管理中 git.xml 文件的摘录
<element>
<key type="string">Commit</key>
<value version="1" type="GenericHookCommand">
<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\"</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
我希望修改它以包含推送,因此当您在管理工作室中进行提交时,它也会推送到 git。
我尝试添加另一个命令,例如
<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\"</CommandLine>
<commandline>git push</commandline>
也试过了
<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\" && git push</CommandLine>
但两者都不起作用,关于如何获得提交和推送工作的任何想法
【问题讨论】:
标签: redgate