title: C# Git Command issue
body: <p>I am developing an App where I need to Run Git Command from C#. I used Process to run Commands if I am passing user Name and password then Is says UserName or Password is Incorrect  but it actual working Conventional. Below is my Code:-</p>
  
  <pre><code>public static void PullCode(string gitCommand)
  {
      string strPassword = "Password";
      ProcessStartInfo gitInfo = new ProcessStartInfo();
      Process gitProcess = new Process();
  
      gitInfo.CreateNoWindow = true;
      gitInfo.UserName = "UserNAme";
      gitInfo.Password = Misc.ConvertPassword(strPassword);
      gitInfo.UseShellExecute = false;
      gitInfo.FileName = @"C:\Program Files (x86)\Git\bin\git.exe";  //git repostory directory path
      gitInfo.Arguments = gitCommand; //git command such as "fetch orign"
      gitInfo.WorkingDirectory = @"E:\Code Demo\testrepo";  //YOUR_GIT_REPOSITORY_PATH Where you want to Copy Data
      gitInfo.RedirectStandardError = true;
      gitInfo.RedirectStandardOutput = true;
  
      using( var proc = new System.Diagnostics.Process() )
      {
          proc.StartInfo = gitInfo;
          proc.Start();
  
          var output = proc.StandardOutput.ReadToEnd();
          var error = proc.StandardError.ReadToEnd();
  
          var logRaw = string.IsNullOrEmpty( output ) &amp;&amp; !string.IsNullOrEmpty( error )
              ? error.Split( '\n' ).ToArray()
              : output.Split( '\n' ).ToArray();
  
          proc.WaitForExit();
          proc.Close();
      }
  }
  </code></pre>