Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [git]

Git is a distributed source control system.

0
votes
0answers
7 views

Jenkins bitbucket-webhooks Plugin wrong url

I've created a Post Webhook in our bitbucket server to our jenkins server. At jenkins side I installed the Bitbucket plugin and checked "Build when a change is pushed to BitBucket". So now if I push ...
2
votes
1answer
19 views

“git init” via “gio mount” on samba: fatal: could not set 'core.filemode' to 'false'

I want to push my repository to a Samba share mounted via GNOME's Nautilus. I believe it uses gio mount under the hood. However, when I try to run git init in a mounted Samba share, I get the ...
0
votes
0answers
21 views

Managing sub-domains with Let'sEncrypt SSL Cert with Nginx

So I have a VPS which hosts Wordpress, Gitea and Nextcloud. Wordpress is available via www.domain.name Gitea is available via git.domain.name Nextcloud is available via cloud.domain.name I am ...
1
vote
2answers
42 views

How to properly automate git push to server

I am in the process of migrating our ansible files to our internal gitlab server and have some confusion about the various ways to keep the ansible roles directory in sync with the gitlab project. The ...
0
votes
1answer
55 views

Hosting gitlab server will conflict with port of sshd

I want to host gitlab on one of my servers, and it seems that gitlab needs to listen to port 22 for ssh (git ssh protocol). But the problem is my host machine already uses port 22 for sshd and I need ...
1
vote
1answer
35 views

EC2: Cannot git clone at launch

I am trying to git clone a private repository from GitHub on EC2 instance at launch. What I have in my script(user data) is the following. git clone -b branchname https://github.com/orgname/...
0
votes
0answers
53 views

How to get git bash to accept SSH keys from Ubuntu install

I have a previous Ubuntu install that I need to get the SSH key to work now with git bash. I have followed a few guides and none have worked. Currently I have /c/Users/josh/.ssh set when I go to my ....
1
vote
1answer
21 views

Git push cause remote to have untracked files

Recently, both our Git remotes (one a production server, and the other a staging one) cause issues when pushing changes. Typically : Local git add <list of untracked files> git commit -m <...
0
votes
0answers
8 views

Make Puppet Enterprise see changes to git repos referenced in the Puppetfile more quickly

I am using Puppet Enterprise 2017 to manage some servers. I use this Puppetfile: mod 'puppetlabs/stdlib', :latest mod 'kdc', :git => 'https://git.example.com/myrepos/kdc.git', :branch =>...
1
vote
1answer
67 views

How can I check the version of libssh2 git was compiled with?

I recently received a notice from a cloud hosting provider that they will no longer be accepting Git connections from clients that use versions of libssh2 below 1.7.0. We have a couple of build tools ...
5
votes
2answers
249 views

any issues with file-copy Git Repo to another machine (and keep working from both)?

I want to copy all my git repos from my old machine to my new machine (both Ubuntu). I will keep using both machines... I am doing this primarily out of laziness (well: there are for some local ...
0
votes
0answers
18 views

Apache 2.4 on Windows logs “Request exceeded the limit of 10 subrequest nesting levels” error when using git-http-backend

I set up Apache 2.4.35 on a Windows Server 2008 machine and configured it for git-http-backend. Things seem to work but the error messages in the log bug me. The question: what is causing this, do ...
0
votes
0answers
10 views

“replay” git push for post-receive hook

I am trying to link Jira issues to commits in a central git repository, and have found the plugin SCM Activity for Jira. It is designed to be called from a post-receive hook. The post-receive (and ...
0
votes
0answers
10 views

Get cgit working with Hiawatha

I wan to use cgit with Hiawatha. I have used it before with lighttpd and everything works perfect. But now I switched the webserver, and I didn't get cgit to run. So my question is, if anybody could ...
0
votes
1answer
45 views

Pushing to windows remote fails

I've created a repository on a windows machine at: C:/Users/Administrator/Desktop/project.git I've now added my remote to my local repository: git add remote ssh://Administrator@11.11.11.11/C:/Users/...
1
vote
1answer
49 views

Possible to Trigger CodeDeloy to deploy code on codeCommit Push Trigger?

I have setup a deployment of code in code-commit. I have my code present in CodeCommit. As soon as there is a code pushed to master branch, i want that master branch code to be pushed to production (...
0
votes
1answer
29 views

Gitlab uninstall issue

I am using Redhat linux in my web server and I had git repositories manually setup in one ip called 192.168.0.100. This was installed under a user called git. I have been accessing git by calling like:...
0
votes
2answers
171 views

Permission denied (publickey) when cloning git repo, but SSH works fine

I'm attempting to clone a git repo using SSH protocol like so: sudo git clone ryan@example.com:/var/www/repo But I'm getting the "Permission denied (publickey)" error. However, I already placed my ...
0
votes
0answers
22 views

Git SSH keys for multiple accounts, 1 doesn't work

I've attempted to set up 2 ssh keys for my personal and work Bitbucket accounts using this guide here: this guide from Atlassian. One of my accounts is a personal account and the other is a work ...
-1
votes
1answer
46 views

Ansible versioning on git

I've got a git repo, I've got my playbooks and hosts. Now what? What is the recommended way to get my /etc/ansible folder on my GitLab? I can just create the repo, but then how and when do I pull ...
0
votes
2answers
24 views

How to host a git on server for websites

I've been taking a class this semester where students make a few design projects. I take this class annually and would like to start saving student outputs for posterity. Currently students make a web ...
0
votes
1answer
39 views

Why is git not using identity set in ssh config file? [closed]

I am trying to connect to my local Gitea server. I have set it up to use the integrated SSH server on port 2222. I am running Windows. Gitea is running fine. Now I want to connect using Cygwin's git. ...
0
votes
0answers
69 views

Gogs not restarting after server reboot

I had quiet an abnormal thing happen with my development gogs server today. I should say that I am working with a huge repo (+60GB) and this may be a factor in the problem. I checked out a previous ...
0
votes
0answers
38 views

no prompt for username/password for push to git server

Background I am almost done prototyping a git server. I have the web viewer, clone over ssh, and push over ssh up and running. Finally, I have clone over https up and running, but am having trouble ...
0
votes
0answers
51 views

Automatic write from web server to git production repository using passwordless SSH key: is it secure?

I have a wordpress website which have 4 different environments: development, preview, staging and production. This all are connected to 4 git remote repositories: development, preview, staging and ...
0
votes
0answers
172 views

Jenkins occasionally fails to clone/fetch

I am running code hosted on Gitlab on regular basis in Jenkins. From time to time, Jenkins GIT plugin failes to fetch the remote repository. It works fine when I just run it again. Any idea? I have ...
0
votes
1answer
238 views

Gitlab Verify return code: 21 (unable to verify the first certificate)

I'm having some problems that I hadn't before with Gitlab and Git. I updated my SSL on my Debian server as I usually do each year and git doesn't work as intended anymore Apache Web Server and ...
0
votes
0answers
85 views

How to allow branch permissions on bitbucket server

Bitbucket server's branch permissions seem all back to front to me. They allow you to restrict access to branches but offer no ability to allow it. Here's my problem. I've got an unruly bunch of ...
0
votes
0answers
60 views

How to install git-lfs on hp-ux

I was able to install git using swinstall & depot file, and after installing all dependencies it works. I cannot find any depot file for git-lfs extension: Is there any easy way to install git-...
0
votes
2answers
178 views

Jenkins Build Failing with limited error output

I have recently setup a gogs server to connect with Jenkins (previously we were using SVN). The connection is working but the build fails when retrieving objects from the gogs server around 41%-43% (...
2
votes
1answer
106 views

SSH error between gogs and Jenkins

I am trying to setup an automated pipeline between Jenkins and Gogs and am having some issues with connecting the two together. I feel like I have followed the process correctly but am still receiving ...
0
votes
1answer
74 views

Deploy Node project locally on ec2 machine

I have a ec2 Linux-16.04 machine, and Jenkins is installed on it. I would like to have a Jenkins job to deploy my Node server on the same machine under another user. What would be the best approach?
0
votes
1answer
89 views

How to configure SSH agent to set user for second hop?

Is it possible to connect to a web server and then connect to a git server using SSH agent if the second hop needs a different user? It works if I pass in the user name explicitly. $ ssh web....
0
votes
2answers
1k views

Set up database for integration testing with Jenkins in Docker

Background: I was following Downloading and running Jenkins in Docker to setup Jenkins Server. Used following parameter to run Docker. docker run \ -u root \ --rm \ -d \ -p 8080:8080 \ -...
0
votes
1answer
15 views

How do I setup a host that every time I push to git, files are updated on the host?

I'd like to be able to push to git and have my repo synced to a directory on a different host. I host my code @ GitHub and have a VPS @ Lightsail. Is there some sort of script, cronjob, or existing ...
2
votes
1answer
322 views

Using Built-in Windows 10 sshd, cannot clone git repository

Windows 10 now includes a built in sshd server. That means I should be able to access my git repositories located on the windows machine with git clone ssh://myid@mywinmachine/myrepos/repo1.git ...
3
votes
2answers
118 views

How to run a script on a server 1 minute after a commit has been made?

Apart from creating a 2nd script which would check the time of the last commit and then run the main script and which would be too complex of a solution, is there a simpler one?
0
votes
2answers
77 views

Ssh behind static IP

Sorry if this is duplicated , I just can't find a solution . Scenario - static IP 125.22.25.241 which is accessible from outside world with ssh . Local ip 10.0.0.6 - local pc inside the netqork of ...
0
votes
0answers
59 views

cgit shows images as hex code

I have set up cgit. Everthing works perfect except images in the repo that are shown as hex. Take a look at an example: https://git.malte-kiefer.de/Prosody-Web-Registration-Theme.git/tree/screenshots/...
0
votes
1answer
181 views

SSH Tunnel connected but can't git clone

I believe this is a fairly simple one, but on the face of things I am sure its not "wrong". I am trying to ssh tunnel in from my linux machine into a OSx machine that has access to my VPN. Setting ...
1
vote
0answers
133 views

Unable to push after setting git smart http. Pull and Clone working

I am trying to set up git in my server with smart http as the access mechanism. Due to some intergration problems we can not use any other mehtod and it has to be the http or the https methods. So i ...
0
votes
1answer
278 views

Git: server certificate verification failed using Bitbucket Server

I have a Bitbucket server running onprem with a certificate. I added it to the keystore ussing the follwing commands openssl pkcs12 -export -in myurl.com.cer -inkey myurl.com.key -out myurl.com.p12 ...
0
votes
0answers
26 views

cannot make squid and git work together on proxy

Although I have defined the git's port in my squid config file. I still cannot connect to bitbucket which my company has restrection on it. acl all src all acl manager proto cache_object acl ...
0
votes
0answers
24 views

VPN connection blocking git requests - Linux

For work I use a VPN connection to access our private network/servers. When I connect to the VPN it seems as though http/https keeps working fine but all other requests i'm having issues with, the ...
1
vote
1answer
291 views

How to start git-daemon at boot?

I've created scripts to control starting, stopping, etc. of my git-daemon on Fedora28. I'm now attempting to link these scripts to a systemd service so git-daemon will be available after reboot. The ...
0
votes
0answers
20 views

do not upload files from the client to the local server

I have a virtual machine with ubuntu and git from the client send push but the files are not created on the server. On the other hand if I do not use on the server: git config receive....
0
votes
0answers
24 views

Automate Deployment For Node.js Apps With Git Hooks but need permission for npm i?

Hopefully I am not posting in the wrong area because I think this is more of permission instead of coding part which I am not sure how to setup the permission properly. (If I am posting in the wrong ...
0
votes
1answer
185 views

How to add multiple post-receive hooks to a git repository?

I would like to add multiple post-receive hook scripts to a git repository on my own server. For example: triggering CI, and posting to slack. How can I add more than one script?
1
vote
0answers
146 views

Does Bash through Linux as a Subsystem for Win10 replace Git Bash for Windows?

I'm in the process of learning how to create Wordpress templates, and as a part of that was told to install Git, npm, node and gulp. However, the online course leaves out details about where stuff ...
1
vote
0answers
17 views

how to manage Multiple User Acceptance Tests at once

Our current setup has the following environments: development testing staging production We are finding that things are being held back at the testing phase due to UAT taking longer than expected ...