private static Process CreateAndStartProcess(string arguments, string cmd)
{
Settings.GitLog.Log(cmd + " " + arguments);
//process used to execute external commands
var process = new Process();
SetCommonProcessAttributes(process, arguments);
process.StartInfo.CreateNoWindow = true;
process.StartInfo.FileName = cmd;
process.StartInfo.Arguments = arguments;
process.StartInfo.WorkingDirectory = Settings.WorkingDir;
process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
process.StartInfo.LoadUserProfile = true;
process.Start();
return process;
}