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
8 views

Jenkins is not authorising with a local git repo [on hold]

I've got a ESXi OS running on my spare desktop, so I've setup a freeNAS as 1 VM and windows 10 as my other VM. I'm trying to host a local git repository on one of the jails on my freeNAS, Jenkins on ...
2
votes
1answer
30 views

How to prevent Git client hanging during post-receive hook

I have a Git repository that contains a collection of config files and python scripts. On the server repository, I have a post-receive hook that will: checkout the master branch, setup a python ...
0
votes
0answers
19 views

Forward one SSH user login to a different SSH server

I have a box with one user, say pmg, and on it I run Gitea in a container with its own ssh server and another user, git. Currently, I have configured the main SSH server to listen on port 22, and the ...
1
vote
1answer
33 views

Keep BIG folder sincronized on network

I have N Windows 2016 servers with a folder which needs to have binaries up-to-date. This folder (actually) haves ~200GB, but it may grow, twice its size or even more. My idea was to keep those ...
1
vote
1answer
65 views

TFS: Inconsistencies in git web source code browser

We have been using on premise Team Foundation Server v. 15.117.27414.0. Everything has been working fine, except on the project's web portal, on the Code page (code explorer), all of the files that ...
0
votes
1answer
17 views

Will Team Foundation Version Control ignore the git folder?

I have a Visual Studio project that I am going to add to our companies TFVC. I will be doing so from inside Visual Studio. I use git from the command line while I'm developing. When I add my Visual ...
1
vote
0answers
19 views

access git repository from server in DMZ, accessed through VPN tunnel

My laptop mylaptop has access to a git repo mygitrepo.com. From mylaptop I can access a web server in a DMZ dmzserver through a VPN tunnel. Of course, dmzserver cannot directly access mygitrepo.com. ...
0
votes
2answers
43 views

Using GIT variables in a declarative Jenkins pipeline

I'm struggling to access GIT variables in my Jenkins pipeline I need to know what GIT branch it's been checked out inside some bash code in a stage of the pipeline. I will use this to create ...
1
vote
0answers
15 views

Can Git run hooks with source instead of as an executable?

I want to use Git to manage the files in a directory on my cheap web hosting provider. The provider gives me SSH access and has Git installed, but doesn't allow me to add executable hooks. ...
0
votes
1answer
60 views

How to create a GitHub repository from CLI

Is there any git command/script to create new GitHub repository from CLI?
0
votes
1answer
20 views

error: unknown switch `a' caused by git

I have got the following error Step 5/6 : RUN git clone https://github.com/jkimlab/mySyntenyPortal.git cd mySyntenyPortal find . -name '*.pl' -exec sed -i.bak 's|#!/usr/bin/perl|#!/usr/bin/...
1
vote
1answer
65 views

AWSCodeCommit: ReadOnly is available, but not FullAccess

I am trying to setup a Git Repo on an AWS Gov. Cloud by following these instructions. As part of the instructions, I need to add Permissions "AWSCodeCommitFullControl" to a user. When I try to find ...
2
votes
1answer
90 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 ...
1
vote
2answers
349 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
85 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
81 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/...
1
vote
1answer
38 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
10 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
166 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
269 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
14 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
11 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
51 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
39 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
270 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
63 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
25 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
69 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
108 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
71 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
1answer
232 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
412 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
133 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
83 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
204 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
142 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
75 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
143 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
2k 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
442 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
121 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
87 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
65 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
268 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
171 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
352 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 ...