Git is a distributed source control system.

learn more… | top users | synonyms

6
votes
2answers
214 views

Making ssh easier for our Windows user community

I work in an academic environment where we are providing a variety of ssh-accessible compute resources. We also provide git repository hosting, and we require ssh for read/write access to the ...
5
votes
2answers
2k views

push commits to git (gitolite) repository messes up file permissions (no more trac access)

already posted here so feel free to answer there. everytime i commit/push something to the git server the file permissions change (all added/edited files in the repository have no read and execute ...
5
votes
2answers
16k views

How to set up Gitweb

I have set up Git on a server, using gitosis to control commit access. I would like to configure my Git system so that anyone inside our firewall can have read access to the Git repository, and I ...
5
votes
3answers
5k views

Git : seemed to be in “(no branch)” and then lost my changes

I was trying to push from my Git workspace up to Github but my added and committed changes didn't seem to get uploaded. Then, doing a "git branch" I got something that looked like this : git branch ...
5
votes
1answer
5k views

Gitolite clone not working as intended

I am running a Debian system, and have recently installed gitolite using the DEB package. Here is my problem: I have tried to clone the gitolite-admin.git repository (which is used for configuring ...
5
votes
3answers
1k views

Can etckeeper be used to track config files outside of /etc?

Specificly I would like to track my grub.conf (/boot/grub/grub.conf) and some oracle files (i.e. /db/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora). I attempted using links; however ...
5
votes
3answers
3k views

How to store etckeeper repositories on a central server via git

I would like to have one central git repository for all my servers' etckeeper .git repos. Here the suggestion was to use a file in /etc/etckeeper/commit.d, which basically looks like this, assuming ...
5
votes
2answers
298 views

Why did git stop working after server disabled SSLv3?

Like most others, our repository server needs to disable SSLv3 (and v2) ASAP. However, doing so seems to break our git-clients -- at least, on RHEL5 (connections from my FreeBSD desktop work fine). ...
5
votes
2answers
9k views

What are the steps to setup git-http-backend w/ Apache on Windows?

I would like setup a Git server using the "Smart-HTTP" approach. However, I'm having difficulties getting it to work in Windows, and I'm new to Apache. My httpd.conf, in part: SetEnv ...
5
votes
1answer
267 views

Managing puppet modules with git

I have a puppet/foreman server running on Debian 7 for managing my systems. I use the community version 3.7 of puppet and foreman 1.6.0. I use directory environments. At the moment I use a rather ...
5
votes
2answers
10k views

How can I install git on RHEL 6?

I'm trying to install Git on a RHEL6 development server, I have experience with Ubuntu but this is my first time working with RHEL (I'm a developer trying to fill in for a recently departed Linux ...
5
votes
1answer
568 views

Automatically sign all commits with git [closed]

With git 1.7.9, it's possible to sign a commit with the -S option. Is it possible to set it default through git config --global? So instead of git commit -S -m 'Commit message', it would be just git ...
5
votes
1answer
749 views

I would like Jenkins to fire a build when a patchset is uploaded or changed in Gerrit. How, exactly, do I configure this?

I am using Jenkins 1.557 to watch a Gerrit 2.8 instance for changes. I am using the following plugins: Git Plugin 2.1.0 Git Client Plugin 1.7.0 Gerrit Trigger 2.11.1 When I use "test connection" ...
5
votes
1answer
955 views

Multi-server Deployment strategies - Git on production servers?

Main question: Is deployment using Git on production servers a good strategy? Many, many deployment strategies I see revolve around having Git on your servers (dev, staging and production). The ...
5
votes
1answer
87 views

Compliance in DVCS administration at an enterprise context, what to expect from a transition from a CVCS (Perforce)?

I work in a big multinational company as a software engineer and I'm currently holding a very nice conversation with IT and other developers with regards to adopting a DVCS (Mercurial and/or Git). ...
5
votes
1answer
163 views

GPG verifying git tags in a deployment script

We would like our deployment process to pull directly from our git repository, but only activate new changes if they are signed (via git tag -s) with a GPG signature. I've found very few examples out ...
5
votes
3answers
5k views

Git fails to push with error 'out of memory'

I'm using gitosis on a server that has a low amount of memory, specifically around 512 MB. When I try to push a large folder (happens to be a backup from an android phone), I get: ...
5
votes
1answer
342 views

Apache not calling the Smart HTTP CGI

I'm setting up a git server with git-http-backend and Smart HTTP but Apache doesn't seem to be calling the Smart HTTP CGI: $ curl ...
5
votes
1answer
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: ...
5
votes
1answer
3k 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 ...
4
votes
2answers
218 views

Is `which` lying to me?

I installed git via apt-get, but found that the version was hopelessly outdated, so I then installed git from source. The end result is rather puzzling: $ git --version git version 1.7.0.4 $ which ...
4
votes
3answers
498 views

Should I avoid using git to track individual files with separate history, such as in /var/named?

In January 2012 Randal Schwartz gave a talk called Introduction to Git that I very much enjoyed, but I was left confused about his admonition not to use git to track individual files with unrelated or ...
4
votes
3answers
748 views

Installing git with no idea about machine configuration

I have a user account on a Linux server (x86_64-unknown-linux-gnu, according to this). It apparently has no package managers in the $PATH (yum, apt-get, pkg, pkg-add, emerge, pacman), and it does not ...
4
votes
3answers
290 views

Is it an unsafe practice to symlink /etc conf files?

To manage the configuration of a server, I keep some configuration flies (located in /etc) under version control (in the home folder) and then symlink to them from their /etc locations: ...
4
votes
2answers
6k views

Allow User 'git' to run 'git pull' as 'www-data' via sudo

I would like to allow git to run 'git pull' as user 'www-data'. As far as i understand git ALL=(www-data) git pull in /etc/sudoers should make it. Sadly i get an Syntax error for this line and ...
4
votes
2answers
1k views

Can I make git extract a working copy only from a remote repository?

As a system administrator I would like to be able to write an automated process for installation to a production server that: has access to a remote git repository (say on git.mycompany.com) can get ...
4
votes
4answers
1k views

transparent git-svn gateway

Currently we have an subversion repository with the following layout: /trunc /group1 /proj1 /proj2 group2 /proj3 /etc.. /tags /group1 /proj1 /proj2 group2 /proj3 /etc.. /branch ...
4
votes
2answers
4k views

Locking down git ssh server

I'd like to set up a git server over ssh, with a single SSH account for the project. All project members should have their ssh keys listed in authorized_keys. Lockdown should restrict access to only ...
4
votes
3answers
2k views

SSH does not allow the use of a key with group readable permissions

I have a development git server that deploys to a live server when the live branch is pushed to. Every user has their own login and therefore the post-receive hook which does the live deployment is ...
4
votes
4answers
4k views

Running git pull from a php script

I was trying the Perfect Workflow, with Git, GitHub, and SSH, but it seems i can't run git pull. I've tried git status and it's fine. When i git pull 2>&1 i get: error: cannot open ...
4
votes
4answers
5k views

Howto Nginx + git-http-backend + fcgiwrap (Debian Squeeze)

I am trying to setup git-http-backend with Nginx but after 24 hours wasting time and reading everything I could I think this config should work but doesn't. server { listen 80; server_name ...
4
votes
3answers
4k views

Using rsync from msysgit

I have three windows boxes that are connected to a linux box on my network in various ways (one's local to the network, one is a laptop and may or may not be local, and the other is my work desktop). ...
4
votes
2answers
1k views

Can't clone gitolite-admin

I'm trying to setup gitolite on my server which is a mac mini running os X leopard (non-server version). I believe I correctly installed gitolite using the root installation method detailed on ...
4
votes
2answers
2k views

gitolite setup on Mac => git-upload-pack: command not found

I am trying to setup gitolite using the "directly on the server method" in the docs Went through the entire setup, uploading the ssh public key etc... so now I can ssh git@myserver without ...
4
votes
2answers
1k views

Is it safe to use git with multiple users when the repository is on a windows file share?

We are a team of less than ten persons that need to quickly set up a git repository that supports active directory based authentication. The simplest solution seems to be to use a file share with a ...
4
votes
3answers
817 views

Problems validating Puppet manifests with “puppet parser validate”

I'm using puppet parser validate in a git pre-commit hook in order to spot problems before committing files to our Puppet configuration repository. Unfortunately, this command appears to be a very ...
4
votes
1answer
629 views

etckeeper, Git checkout, and broken file permissions in /etc

I wanted to figure out why, after a etckeeper commit, I had a problem with rebooting (already solved thanks to this great thing). I played with etckeeper, did git checkout some_commit_sha for a quick ...
4
votes
3answers
611 views

Version Control and Backup, which combination?

I'm a sole developer and I have 3 computers. Plus a friend of mine has an account, but never uses it. My current setup is GIT + my own ad hoc backup job that clones the repository, zips it, gnupg it, ...
4
votes
2answers
2k views

GIT, SSH, and GIT-SHELL

I'm trying to set up a secure git repository server using ssh-keys and git-shell. Since our user database is stored in a central LDAP directory, I can't change users' default shell to git-shell, so ...
4
votes
2answers
2k views

gitolite unable to exec git

I am having issues setting up gitolite. Server is Mac OS X Server 10.5.8 and client is Mac OS X 10.6.6. Both are running git 1.7.3.4 compiled from source. I'm following the documentation as best as I ...
4
votes
4answers
4k views

Error cloning gitosis-admin on new setup

I have the following in my gitosis.conf. (Created via gitsosis-init < id_rsa.pub with the key from my laptop) [gitosis] loglevel = DEBUG [group gitosis-admin] writable = gitosis-admin members = ...
4
votes
2answers
816 views

25 Sidekiq processes for Gitlab

Looking at htop output on my server I see 25 sidekiq processes spawned by Gitlab. I use Gitlab privately, so there is never going to be any load, so I doubt all of those processes are required, but I ...
4
votes
1answer
901 views

beanstalk using php-git on windows client

I am trying to install beanstalk for php using git. I am using a Windows Client machine. I am done with the prerequisite installations , credentials setup. I am following the link ...
4
votes
2answers
5k views

Cygwin, ssh, and git on Windows Server 2008

I'm trying to setup a git repository on an existing Windows 2008 (R2) server. I have successfully installed Cygwin & added git and ssh to the packages, and everything works perfectly (thanks to ...
4
votes
1answer
223 views

AD GIT SELinux RHEL 6 : Can not get SELinux to allow connetion to git

I have a problem with SELinux! I have installed git on Red Hat Enterprise 6 with AD group control and SSL Cert . Everything works fine if I do setenforce 0 ( set SELinux in detection only mode ) or ...
4
votes
2answers
2k views

Error authenticating git repository with Redmine

I've setup Redmine 2.1 on my Debian Squeeze server following this Tutorial HowTo configure Redmine for advanced git integration (I tried to use the grack path). Redmine server is running properly, but ...
4
votes
1answer
329 views

How can I use etckeeper via sudo with different users and have the correct user in the commit message? [duplicate]

I'm working on a server with several admin users. Each of them can use sudo to make configuration changes. We're keepeing our /etc directory version-controlled using etckeeper. However, when I or ...
3
votes
3answers
6k views

GIt Daemon and Access Control for Multiple Repos

Here is the situation, I have a folder named git which contains various --bare git repositories. This is on my server which is CentOS 5. My personal computer at home is a Windows XP. I want to push ...
3
votes
2answers
1k views

Cron job checking for changes in Git repository

We have just moved our server configs to a Git repository. Therefore there should not be any changes in any of the repository folders. I was thinking about how I could set up a cron job to check for ...
3
votes
4answers
839 views

How Do I Make A Bash Script for Git Checkin/Checkout?

I was thinking of bringing up a git service on an Ubuntu server. However, the way me and another programmer operate -- we really want to try and stick to one person working on a project at a time. ...