Linked Questions

672 votes
9 answers
159k views

The term "porcelain" appears occasionally in the Git documentation. What does it mean?
Jan Hettich'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
8 votes
1 answer
2k views

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: #!/...
Yoskutik's user avatar
  • 2,129
3 votes
1 answer
4k views

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)...
user3903517's user avatar
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
2 answers
1k views

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 ...
shashanka n's user avatar
  • 2,606
1 vote
1 answer
590 views

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 ...
gridtrak's user avatar
  • 827
1 vote
1 answer
412 views

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 }} ...
floatingpurr's user avatar
  • 8,729
2 votes
1 answer
387 views

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 ...
n0z's user avatar
  • 55
1 vote
1 answer
301 views

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 ...
user avatar
1 vote
1 answer
147 views

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 [...
Harry M's user avatar
  • 2,106
1 vote
0 answers
81 views

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", "...
amitection's user avatar
  • 3,033
2 votes
1 answer
75 views

I have a python script which captures repo command. import subprocess processing(commandforrepo) def processing(repocmd): process = None process = subprocess.Popen(repocmd, ...
user9501038's user avatar