Linked Questions
15 questions linked to/from Why does "git submodule add ..." write to stderr rather than stdout?
672 votes
9 answers
159k views
What does the term "porcelain" mean in Git?
The term "porcelain" appears occasionally in the Git documentation. What does it mean?
9 votes
2 answers
12k views
PowerShell Capture Git Output
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 ...
24 votes
1 answer
19k views
Running "Git-Clone" from Powershell giving errors even when it seems to work
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 ...
33 votes
1 answer
7k views
How to stop git from writing non-errors to stderr
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 ...
8 votes
1 answer
2k views
Git Hooks. How to read variables from user input?
I'm trying to create a pre-commit hook. And I want it to interract with user. So, I've found that I can use read -p "Enter info: " info Or just read info I created a file: pre-commit: #!/...
3 votes
1 answer
4k views
Output of git command is not fully redirected to a file
The output of git fetch command, is redirected to "test1" file from the below cmd: manish@rigved:~$ git fetch --all --prune > test1 From https://github.com/Beawel/wwwnew x [deleted] (none)...
3 votes
2 answers
4k views
Assigning output of git log to powershell variable
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]....
2 votes
2 answers
1k views
Open a pull requests' URL in the browser after a git push?
My employer uses an on-prem bitbucket server, and it echoes back a pull request URL after I do a git push. Is there a way to have a global hook which lets me open this URL directly in my browser every ...
1 vote
1 answer
590 views
Git Portable 64 Bash not working in Windows Server 2016 Task Scheduler
I need help trying to figure out why Git repository commands are not not executing when run in a script in Windows Server 2016 Task scheduler. All works OK when I execute them in a command console. In ...
1 vote
1 answer
412 views
Why so many `err:` prefixes in the output of ssh-action even if everything is fine?
I am on appleboy/ssh-action and I have a very simple step built on it steps: - name: execute remote commands uses: appleboy/ssh-action@master with: host: ${{ secrets.HOST }} ...
2 votes
1 answer
387 views
How to make that git push origin master dont show output of files in repo
I'm trying that git push don't show the output. I try with --quiet option and redirection to /dev/null like that: git push origin master &>/dev/null But Git still shows all files of the repo ...
1 vote
1 answer
301 views
Why `git pull` doesn't work when executed from within a Python script?
I'm trying to use the subprocess module to perform a git pull operation in a repository. The problem is that other commands, such as git status work fine, but the git pull doesn't. No output is ...
1 vote
1 answer
147 views
bash - Unable to save entire output of git clone into a variable [duplicate]
I'm trying to save the output of git clone into a bash variable. When I do the below, I only get the first line DIR=$(git clone repo_url >& /dev/stdout) echo $DIR Output: Cloning into [...
1 vote
0 answers
81 views
Git checkout to a commit id redirects the output to stderr when using python subprocess [duplicate]
I am using subprocess module in python to checkout to a particular commit. Below is the sample code. commit_id = '305efe41dc9e9bfa375781fa2b69dd979dcaa7f1' process = subprocess.Popen(["git", "...
2 votes
1 answer
75 views
Python repo popen could not work in python script but works on the terminal
I have a python script which captures repo command. import subprocess processing(commandforrepo) def processing(repocmd): process = None process = subprocess.Popen(repocmd, ...