Questions tagged [git]

Git is a distributed source control system.

Git is a source control system that allows for many people to work on the same project simultaneously. It is distributed, makes it possible for many different branches of the same project to co-exist at the same time, and offers many other advanced features.

Git was originally authored by Linus Torvalds, the creator of the Linux kernel, and the official Git homepage is at git-scm.com

For git quick guide, see gitready.com. More information, see wikipedia

1127 questions
0
votes
0 answers

Is there a way to programmatically push to GitHub using an oauth token?

I want to use a bash script to push to a "build repository" for my Symfony app, which can then be deployed directly to a server. I have the following so far: #!/bin/bash cd .. rm -rf api-analyzer-build git clone…
0
votes
1 answer

php will not allow me to do `shell_exec('git pull origin master 2>&1');`

When I run the script &1'); ?>, I get the error message: error: cannot open .git/FETCH_HEAD: Permission denied Here's what I did: ssh apache@example.com pwd # shows that I'm…
John
  • 7,343
  • 23
  • 63
  • 87
0
votes
1 answer

Jenkins - Git fetch not fetching any branches

Newly setup jenkins isn't scanning any branches. I tried the global creds and multipipeline creds as well. The creds are regular http username and passwords. Here is the log: Started [Tue Dec 08 16:12:29 UTC 2020] Starting branch indexing... > git…
user630702
  • 495
  • 10
  • 32
0
votes
0 answers

Git push freezes at writing objects and gives 504 error

Problem Git hangs while writing objects for a 81 kB repo over HTTPS (SSH is not allowed). The specific error message from Nginx's access.log is as follow: POST /Hello-World/.git/git-receive-pack HTTP/1.1" 504 183 "-"…
pairwiseseq
  • 173
  • 1
  • 1
  • 8
0
votes
0 answers

Git ignore is ignoring sym.llinks?

In a laravel project I have a storage folder and inside it, I have an app folder (normally). So the full path is: /var/www/html/myproject/storage/app Now I have a file server and I wish to serve the app folder from there. Thus I've set up an NFS…
Bert
  • 1,028
  • 1
  • 16
  • 33
0
votes
1 answer

Git pull a specific tag itself?

Because Jenkins pulls a git repo without tags, I'd like to pull the specific tag I'm interested in. Is there a syntax for this? I'm aware of git syntaxes that pull all tags, and syntaxes that pull from tags. What I'm after is the pulling of a…
0
votes
1 answer

git-receive-pack fails from Windows cmd ssh session

I am trying to set up a shared git repo on my Synology NAS. I have checked many step by step articles but don't get why my regular git user cannot clone the repo from Windows cmd and Visual Studio. After a long investigation, I have the feeling the…
mami
  • 111
  • 1
0
votes
2 answers

Local GitLab Not Accepting SSH Key

I checked out this post, but it seems like it was written for OSX and/or Windows, and I'm not really sure how to apply it to my situation: GitLab Not Working With SSH-Keys I set up my GitLab instance normally, using Omnibus (the bash script that…
Alex Eastman
  • 111
  • 3
0
votes
0 answers

Nginx git server authorization only for pushing

I deployed a nginx git server and want to request authorization only for pushing. Tried a lot of solutions, none worked for me. Here is my server configuration server { root /var/www/mysite; index index.html index.htm…
0
votes
1 answer

Git: trying to remove a local branch, but permission denied because of a locked file

On my Linux server there were several git branches I wanted to remove. I used git branch -D branche_name and deleted all these branches except for one. For this one branch called feat/implement-h I get the error: “error: cannot lock ref…
Nick
  • 67
  • 1
  • 1
  • 9
0
votes
0 answers

ssh public key auth fails for private git server

I want to git push from a local debian 10 user to my server (debian 10) where I have set up a git server under the username git using ssh public key auth. The problem is: it still asks for the password. First of all, pushing via password works fine.…
Pratched
  • 101
  • 2
0
votes
1 answer

Git push failed to GCP source repository

For a few days, git push is failing: $ git push -v Pushing to https://source.developers.google.com/p/xxxxxxx Counting objects: 6546, done. Delta compression using up to 2 threads. Compressing objects: 100% (3171/3171), done. POST git-receive-pack…
0
votes
1 answer

Automating SSH authentication to GitHub - what should ~/.ssh/config file look like?

I'm trying to automate logins to GitHub using a private key, so that I can do "git pull/add/commit/push" from a BASH script. If I put this in ~/.ssh/config, it works: Hostname github.com User git IdentityFile ~/.ssh/mygitkey.pem Unfortunately,…
John Heyer
  • 211
  • 1
  • 3
  • 10
0
votes
1 answer

Would scp *.git to migrate one server to another frowned upon?

I need to migrate a Linux server that I’m going to be sunsetting shortly. I’m not a git user but on server1 I have in say /opt/repos/git a couple dozen projects app fooX.git. If I scp overnight when nobody’s using it and endusers get the new IP,…
Jon Weinraub
  • 307
  • 1
  • 3
  • 16
0
votes
1 answer

Move Gitlab to new ip-adress, lfs stop working. How to fix?

We have GitLab 11.2.1-ee installation in our local network It had ip-address 192.168.1.100 before We use Git LFS in our projects And all work fine before we changed ip address of Gitlab machine. We changed the ip-adress of Gitlab machine to…
Petr
  • 103
  • 5