title: how to use git command with MSBuild?
body: <p>I'm thinking about using <strong>git submodules</strong> to retrieve dependencies of my git repository instead of committing binary files to my main repository (effectively only committing binary files to a different repository which I will be able to purge often --by purge I mean delete history to save space on the server...).</p>
  
  <p>Problem is, how to call the GIT executable using MSBuild? In the developer machine git should already be in the path, but in the buildagents the path to git executable is going to come from an environment variable. How to figure out the git path then at compile time using MSBuild? I want to do a git pull of the git submodule every time I build.</p>
  
  <p>Thanks</p>