下面是在redgates源控制git.xml文件的摘錄我想修改展鵬源控制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>
但既不是工作,就如何得到承諾,推動工作