Below is an excerpt for the git.xml file in redgates source control
<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>
i wish to modify it to include the push so when you do a commit in management studio it will also the push to git.
i have tried adding another command like
<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\"</CommandLine>
<commandline>git push</commandline>
and also tried
<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\" && git push</CommandLine>
but neither work, any idea on how to get the commit and push working