Linked Questions

66 votes
5 answers
47k views

Why does PowerShell show the surprising behaviour in the second example below? First, an example of sane behaviour: PS C:\> & cmd /c "echo Hello from standard error 1>&2"; echo "`$...
Colonel Panic's user avatar
15 votes
4 answers
7k views

In PowerShell, git checkout runs without any error message. In the ISE, while git checkout stills works, the ISE gives an error message. > git checkout master Your branch is ahead of 'origin/...
Shaun Luttin's user avatar
9 votes
2 answers
12k views

Problem I am running some git commands through PowerShell but I am having issues capturing the output. Many of the ways I have looked into have failed to capture any output at all until I tried ...
Brandon's user avatar
  • 771
24 votes
1 answer
19k views

How do I interpret the errors coming out of this PowerShell script that calls "Git Clone" (actually using GitLab). And can I clone an empty directory and cause it to work without getting ...
NealWalters's user avatar
  • 18.5k
33 votes
1 answer
7k views

I have a script that I am using to automatically sync various remote git repositories. One thing I am trying to do with my scripts is to capture the output of stderr from every command and write all ...
XJDHDR's user avatar
  • 614
16 votes
2 answers
4k views

When an external command, such as git, writes to stderr, PowerShell generates a NativeCommandError exception. I would like to see the output normally along with stdout similar to how it might look on ...
penguin359's user avatar
  • 1,509
4 votes
3 answers
1k views

I'm using some GIT commands in my PowerShell scripts. Most of the time I'm calling the GIT commands via Invoke-Expression so that I, e.g. can parse the output, or/and forward the out to a logging ...
Moerwald's user avatar
  • 11.4k
3 votes
2 answers
4k views

I want to assign output of git log into a variable, output only goes to the screen and the variable is left null. $log = Push-Location $tempRepo;git init -q;git remote add origin ssh://[email protected]....
Redline1111's user avatar
2 votes
1 answer
1k views

In my Azure DevOps CD pipeline, I have added a Command Line task which clones a Git repository. The clone is done successfully however there is an error in the log. The strange behavior is that the ...
naregkar's user avatar
  • 443
2 votes
1 answer
2k views

I'm currently building a Pipeline to deploy my PHP Symfony Project from Dev Ops Repo to my Server. I use a SSH Task to execute the commands on the Server. The SSH Connection works fine, but some ...
iF4yt's user avatar
  • 21
0 votes
0 answers
432 views

@IBAction func startLocalAction(_ sender: NSButton) { cmd(cmdStr: ["-c","cd Desktop;ls;git clone https://github.com/Fidetro/Masonry"]) } @objc func receivedData(notification:NSNotification) { ...
Karim's user avatar
  • 412
2 votes
0 answers
317 views

When I run a git clone command using child_process.exec it outputs to stderr instead of stdout const proc = child_process.exec(bashCommand, { cwd }); proc.stdout.on("data", data => {...
Toli's user avatar
  • 5,797
1 vote
1 answer
239 views

I have created a powershell script that is ran as the first step in my build definition that gets the latest code and tags the branch as well as execute GitVersion.exe /updateassemblyinfo. The ...
Leonardo Suryana's user avatar
0 votes
1 answer
128 views

I'm using a local TFS 2018 instance for a customer project in which he owns the source code. I want him to have complete access to this code in the event I become unexpectedly unavailable. My ...
InteXX's user avatar
  • 6,547