Rajeswari-Addepalli
Member
- Joined
- Nov 5, 2020
- Messages
- 9
- Programming Experience
- 10+
I've clone the repo and made changes to few files in the repo
tried to stash them and pls. find the below code.
The program doesn't actually seem to end and still running even after 15 minutes of run.
tried to stash them and pls. find the below code.
The program doesn't actually seem to end and still running even after 15 minutes of run.
C#:
Process proc = new Process();
proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
proc.StartInfo.FileName = "cmd";
string repoFolder = @"cd ""E:\sunflower"""; // Navigate to repo folder
proc.StartInfo.Arguments = " git stash push";
proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.RedirectStandardError = true;
proc.StartInfo.UseShellExecute = false;
proc.Start();
proc.WaitForExit();
string output = proc.StandardOutput.ReadToEnd().Trim();
string errors = proc.StandardError.ReadToEnd().Trim();
Last edited by a moderator: