Git is a distributed source control system.

learn more… | top users | synonyms

3
votes
2answers
2k views

Slow git clone and fetch

I setuped gitosis on a linux server following this tutorial: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way We are using git on our windows machines with TortoiseGit ...
2
votes
2answers
48 views

GitLab Automatic deploy

I will be creating a gitlab server at my school to host class code. I wish to make it so that every time any user pushes to gitlab it automatically deploys the project to ...
0
votes
0answers
19 views

SSH over WAN through reverse proxy to LAN git server

We have an URL to our external IP to our gateway that connects to a CentOS nginx reverse proxy behind which sits our Ubuntu Gitlab server on the company LAN Through this we currently have http access ...
1
vote
0answers
14 views

linking a local windows git repository to the aws linux git server

I want to create a git server on my aws linux server so that whenever I want to update my website in the public_html I dont have to manually transfer files to the server, I want to make use of git, ...
3
votes
1answer
1k views

Git clone from Windows to Windows cannot find the repository

git clone gituser@<server>:myRepo.git doesn't work, fails with the error message: fatal: ''myRepo.git'' does not appear to be a git repository Background: We have a Windows 7 machine set up ...
0
votes
0answers
12 views

How do I install git on Synology DSM? [on hold]

While I installed git on Synology DSM 5.x, it seems that is not in PATH. It seems that the executables are installed in /var/packages/git/target/bin but this is clearly not in PATH. Root account ...
225
votes
19answers
300k views

How do I tell Git for Windows where to find my private RSA key?

My GIT setup runs fine in Linux, but when I try to set things up under Windows (using Git for Windows and TortoiseGit), I don't know where to put my private ssh key (or, better still, how to tell ssh ...
1
vote
0answers
28 views

Automatically change remote user with sshfs

I have two remote servers, foo and bar. On both servers I have a user git (with different uid and gid). Both servers are running Debian distributions. Both servers have their each others' root ssh ...
6
votes
2answers
4k views

Git push over http (using git-http-backend) and Apache is not working

I have desperately been trying to get push for git working through the "smart-http" mode using git-http-backend. However after many hours of testing and troubleshooting, I am still left with error: ...
8
votes
4answers
12k views

Specify SSH Port for Git

I use a non-standard ssh port (1234) for most of the servers I connect to. So in my ssh config file I have: Port 1234 But github.com uses port 22. When I try to connect to github it obviously ...
0
votes
1answer
31 views

Can't call “git reset” inside git post-update hook?

I have set up a git repository for my webpage (it's simple HTML, generated from markdown by Pandoc). The repository will only be updated remotely by me, and I have successfully configured it to work ...
0
votes
1answer
32 views

Gitlab - “Server refused public-key signature despite accepting key” on a valid key

I need some help with keys. On my windows 7 machine I have created a pair of keys using Puttygen in order to connect to a private gitlab site. In the gitlab I've added my public key to my profile. ...
3
votes
1answer
2k views

Configuration of nginx for git-http-backend on debian(-based systems)

I'm having trouble to get git-http-backend working using an nginx server on my Ubuntu 13.04 machine. Tried it with Debian 7 before but with similar results. Basically I followed ...
2
votes
2answers
1k views

Mod_pagespeed, Varnish and Apache cache issues after new code pushes

I have a rather strange issue. In my environment we are running a load balanced cluster of 8 apache servers with a master-master MySQL backend. In front of apache we have Varnish in the cache layer. ...
0
votes
1answer
5 views

Git post-receive not working but post-commit does

Long story short, I created a test repo on github, cloned it locally on my linux machine. Created a post-commit hook with the following content: #!/bin/bash echo Test message Added perms 777 for ...
54
votes
14answers
21k views

GIT as a backup tool

On a server, install git cd / git init git add . git commit -a -m "Yes, this is server" Then get /.git/ to point to a network drive (SAN, NFS, Samba whatever) or different disk. Use a cron job ...
0
votes
1answer
62 views

git: preserve group owner

I use a central HUB which does an auto deploy to a productive web server if there are changes in the main branch. Now the setup runs in file permission problems. If I do a push I want to preserve the ...
1
vote
1answer
84 views

How to set up a two-way Git mirror?

The Microsoft .NET Core CLR GitHub repo: https://github.com/dotnet/coreclr It mentions on that page that it does two-way Git mirroring between internal Microsoft servers and GitHub. I'd like to set ...
1
vote
1answer
77 views

Chaining Git Repos for Development and Production Website Deployment?

I would like to know if it is practical, or even wise, to chain git repos together. The situation I am thinking of is where I have the git repos on a remote web server where the master branch is that ...
1
vote
1answer
142 views

Allow a user to access a single Git repository

Consider a server that hosts several Git repositories: $ ls -l /opt/git/ drwxrwxr-x 7 ubuntu root 4096 Jan 2 2014 george.git drwxrwxr-x 7 ubuntu root 4096 Dec 29 2013 john.git drwxrwsr-x 7 ...
1
vote
1answer
40 views

Git repository enforce committer metadata

The purpose is that I manage projects that may be distributed amongst multiple outsource agencies and we would like to, if possible, prevent them from knowing about each other by seeing the commit ...
15
votes
4answers
30k views

git pull specific revision from remote repository

We have a remote git repo that we normally deploy from using git push on our dev server then git pull on on our live servers to get the latest pushed version of the repo. But if we have committed and ...
0
votes
0answers
30 views

GitLab SSH repo clone

My GitLab setup: System information System: Ubuntu 14.04 Current User: git Using RVM: no Ruby Version: 2.1.6p336 Gem Version: 2.2.5 Bundler Version:1.5.3 Rake Version: 10.4.2 ...
1
vote
1answer
980 views

Redhat OpenShift - Connection refused fatal: The remote end hung up unexpectedly

I'm trying to start using Redhat OpenShift with a JBoss 7 Server Cartridge, but as I'm trying to do a git clone I get: $ git clone ...
5
votes
1answer
4k views

git on HTTP with gitolite and nginx

I am trying to setup a server where my git repo would be accessible with HTTP(S). I am using gitolite and nginx (and gitlab for web interface but I doubt it makes any difference). I have searched ...
0
votes
1answer
1k views

php fopen error (failed to open stream: Permission denied)

I have a php script on a Windows Server 2008 box (IIS 7) that is run periodically to download a remote XML file and store it on the server. This script (which previously used to run successfully), is ...
0
votes
1answer
24 views

Git fatal: unable to write new_index file

We are a web development company that is transitioning to Git. Eventually we intend to run it fully locally but at the moment we have development websites hosted on a Linux server, which is also ...
1
vote
1answer
32 views

git clone ssh syntax difference?

Setup There is a host (H1) running gitlab-ce git server within a docker container (C1). The host's OpenSSH server runs on port 22 and provides a host key keyH. The gitlab container provides its own ...
2
votes
1answer
43 views

Git: expire ssh keys just like passwords expire?

I'm setting up git in a corporate environment. Git operations will be primarily though SSH using a single account with SSH keys used for access control. (http will be used for account configuration, ...
1
vote
1answer
77 views

Install a newer version of Git on CentOS 7

I like to enable Git "Push to Deploy" on my CentOS 7 server. Currently I only can get Git 1.8.3.1 via yum. I need a newer version. Do I have to build it from source or is there any repo I can use? I ...
0
votes
0answers
50 views

Redmine can't see git repo from local gitlab server

I'm setting up a VM with centos 7, gitlab-ce and redmine. Everything is installed and running, but I'm unable to setup integration: When I try to access http://redmine/projects/myproject/repository, ...
0
votes
1answer
624 views

how to disable email confirmation in gitlab in private network

Recently I installed the gitlab for my LAN. When my users are trying to create their accounts they are getting email confirmation message. Now my question is I want to disable whole email confirmation ...
-2
votes
1answer
25 views

noobq: what exactly -is- a git repository? [closed]

Im trying to learn git and I'm having serious trouble grokking the most fundamental concept: what exactly -is- a git repository? Or perhaps the more accurate question is what does a git repo actually ...
4
votes
3answers
991 views

Windows Apache 2.2 painfully slow executing CGI

I've recently set up Apache 2.2 and git on one of our Windows XP PCs for gitweb access using the setup at https://git.wiki.kernel.org/index.php/MSysGit:GitWeb As noted on the wiki, the only version of ...
0
votes
2answers
65 views

Cannot create directory: Permission denied

I'm trying for the first time to set up GIT on a VPS following this tutorial. Part of the instructions are: cd /var mkdir repo && cd repo mkdir site.git && cd site.git git init --bare ...
0
votes
1answer
59 views

Serving a git repository with nginx fails with 403 Forbidden

I made a user git and placed an empty bare repository in his home directory /home/git: $ git init --bare test.git $ ls -l drwxr-xr-x 7 git git 4.0K Jul 18 12:51 test.git I want this repository to ...
0
votes
1answer
33 views

Debug slow “git pull” operation executed by the Local System account on a Windows Server

On a Windows server, which runs Apache and PHP, the webserver executes a git pull through a PHP script. This is part of a deployment process. When the Apache2 service runs under the Local System ...
0
votes
0answers
17 views

git server via ssh access alternate root (like svnserve -r root)

Is there any more elegant way to achive this? I want a dedicated git server for a multitude of (LDAP)users and multiple repositories. The repositories actually reside on a different server mounted ...
1
vote
2answers
84 views

Permission Issues When Pushing to Git Remote

I've spent the past few days trying to set up a Git Remote on my server so I can push changes to my web-server to it. The problem is that I'm getting the following errors while doing it: $ git push ...
0
votes
0answers
20 views

Adding site from a folder few levels inside wwwroot, throws Error 404

I am completely new to IIS, I am trying all this on Windows Server 2012. What I am trying to do is, I have setup a Bonobo git server in iis which is at wwwroot/Bonobo.Git.Server level. I have created ...
0
votes
0answers
71 views

nginx push request forbidden

I'm running a local git server using nginx but i'm getting a problem in my push request. i can clone from my repo, after that when i commit and try to push it back my i get a 403 Forbidden error ...
-3
votes
1answer
40 views

Does Git has built-in SSH server? [closed]

I'm trying to setup Git's remote SSH server to access this using SSH, but I haven't found any info how to make this. So, does Git has built-in SSH tools to establish such connection to use this ...
1
vote
0answers
41 views

Nginx - How to authorize access to repositories using python script

I have set up a local Git server using Nginx ( in Ubuntu ) ,Now I want to authorize users using external python script , which should authorize them against predefined database . AFAIK, I have to ...
31
votes
7answers
11k views

Non interactive git clone (ssh fingerprint prompt)

I want to clone a repo in a non-interactive way. When cloning, git asks to confirm host's fingerprint: The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established. RSA key ...
0
votes
1answer
10 views

Apache ScriptAliasMatch to all sub directories ending with _git

I am trying to match all sub directories under a document root that ends in _git and then divert to the git http cgi scripts I currently have: ScriptAliasMatch ^/*/*_git/$ ...
7
votes
2answers
6k views

debian: FATAL -> Failed to fork

First time in my life I have something like this: root@peklan:~# aptitude install git-core No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and ...
1
vote
0answers
34 views

How to use mod_proxy to proxy one call to multiple endpoints?

We are in the process of migrating jobs from an old Jenkins CI server to a newly built one. In the meantime most of the repositories on our Git server (Stash) are configured to invoke a git-hook on ...
0
votes
1answer
47 views

Is it a security issue if I have GIT working copy in www?

If I checkout a working copy into the www root of my site, would that be a security vulnerability?
0
votes
0answers
115 views

How to get git repository from Jenkins on Linux using ssh user name and password

I installed Jenkins and started successfully in EngTemp_server which Linux mint. I installed git plugin and restarted Jenkins I created a new project called Devices and for source code management I ...
2
votes
2answers
263 views

How to set up a secure Git repository?

I followed this tutorial to set up a git repository on an EC2 instance. http://git-scm.com/book/ch4-4.html. Basically, I add a new git user and include my public key in authorized_keys. After setting ...