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
1 answer

Squid Http proxy doesn't work in git clone

I've installed the Squid through Docker and tested with curl and browser, it works fine! And then I'm going to set the Http proxy to git, the below is my command: git config --global http.proxy http://myserverip:3128 And then, here is the result of…
0
votes
0 answers

Any downside to using `sudo git` to upload `/etc/nginx/sites-available/` and `/etc/nginx/ssl/` config files on github?

I'm contemplating uploading config files from /etc/nginx/sites-available/ and /etc/nginx/ssl to a private Github repository. Doing so would require me to use git with sudo (or from root user) for the ssl folder at least (which can only be read by…
Jean Monet
  • 121
  • 6
0
votes
1 answer

Making git daemon serve the repo I created

I've been wracking my brain over this and came to a possible conclusion with no solution. First, my dilemma. I have a project where I can create a repo programmatically. I can edit the description of the repo, set the default branch, &c. This is…
0
votes
1 answer

Nginx HTTP authorization only for git push

I host a private git server using Nginx. I'd like anyone to clone into my repos (without authorization) but require authorization if they try to push a commit. My Nginx configuration is as follows: server { listen 443 ssl; server_name…
pairwiseseq
  • 173
  • 1
  • 1
  • 8
-1
votes
1 answer

SSH connection between two hosts with differents user

i have two hosts H1 with ip=10.10.10.15 , OS=Windows Server 2016 and username=administrator H2 with ip=10.10.10.16 , OS=Centos7 and username=user I attempt to create a ssh connection between H1 and H2. I mean, when i tape from the windows machine :…
Prince Tagoe
  • 41
  • 3
  • 9
-1
votes
1 answer

Git resolves wrong IP for domain

This is a first for me.... I'm trying to clone a repository from our GitLab server to a 3rd server. I have no issues cloning it anywhere else but this server. The output is the following: myuser@localhost ~ $ ssh web@webserver -A Last login: Thu…
Bert
  • 1,028
  • 1
  • 16
  • 33
-1
votes
1 answer

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 this? What about the .git folders? I tried keeping a…
Frank Vermeulen
  • 157
  • 2
  • 8
-1
votes
1 answer

Local git repository on a windows client where remote server is on a remote apache server

Please forgive me if I am asking a repetitive question but I am new to using git repositories and I don't know where to start. Here is my how I want to set up my repository: Create a local repository that the dev site will run under IIS and MySQL…
-1
votes
2 answers

Unable to login as jenkins user

I'm trying to setup Jenkins for one of my projects but get this host key verification failed error. Now, I'm trying to setup an SSH key for my Jenkins user but have issues logging as Jenkins user. sudo su -s /bin/bash jenkins When I try the above…
user1050619
  • 119
  • 1
  • 6
-1
votes
1 answer

Gitlab partially deleted - Recover repo's

I have a private Gitlab server on a Ubuntu machine. Now I, for some reason, accidentally partially uninstalled Gitlab by executing a mistyped apt-get command. I don't know which one exactly, but it started removing Gitlab from the system. I…
Basaa
  • 109
  • 3
-1
votes
1 answer

How to add many projects in to single git repository?

I want to add two existing projects into single git repository. Already I have added one project in to repository now I want to add second project without affecting the first one
Thirumal
  • 103
  • 5
-1
votes
1 answer

Syncing MySQL backup with GIT tags

We have a large Yii2 / PHP application using MySQL database and versioned by GIT. The application is under continuous development as customer require new features. The database gets changed quite frequently. The application is versioned using GIT…
WeSee
  • 486
  • 1
  • 4
  • 10
-1
votes
2 answers

Downloading .sh file from git repository

I am trying to download a file from my git repository onto a VM, and I do so running the following command: curl -O "https://git.com/projects/RENG/repos/test.sh" -k After I run this command I see that the file that gets downloaded to my machine is…
user2019182
  • 39
  • 1
  • 7
-1
votes
1 answer

Git a Windows file system as an alternative to virtual machine snapshots

I am a software developer and I want to test several versions of my software, with different configuration files and different contents in the database (everything running on Windows). For example, I have around 10 installations in production with…
user2518618
  • 109
  • 2
-1
votes
1 answer

Git Extensions using Putty: The Servers Host Key is Not Cached in the Registry (but I think it is)

Following the commands below, I am under the impression that my key is added to "the registry". What am I doing, or where is putty screwing up. I should note that scp alone works because I coppied my id_rsa key from my cygwin installation to my…
Matthew Hoggan
  • 153
  • 1
  • 3
  • 8