Redirecting Process Output

private static string GetGitBranch()
{
    var result = string.Empty;

    var psi = new ProcessStartInfo
    {
        Arguments = "/c git branch --show-current",
        FileName = "cmd.exe",
        WindowStyle = ProcessWindowStyle.Normal,
        RedirectStandardOutput = true
    };

    var p = Process.Start(psi);

    result = p.StandardOutput.ReadToEnd();

    p.WaitForExit();

    result = result.Replace("\n", string.Empty);

    return result;
}