Git is a distributed source control system.

learn more… | top users | synonyms

6
votes
6answers
509 views

Version Controlling Foreman & Puppet

I have just setup Foreman for the first time & am not sure how to go about putting all of my configurations under version control. I know I can use Git for each module I install on my Puppet ...
6
votes
2answers
215 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 ...
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: ...
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
2answers
9k views

UNIX - How to give user rights over another user and so I don't need to sudo or type password?

I have 2 users in question • git user - used for gitosis - so it's a No password user and it can be accessed only through root... • user user - where my files reside so what I would like to do is ...
5
votes
1answer
11k views

What is the best way to backup and restore gitlab? [closed]

What is the best way to backup and restore gitlab incuding all repositories, commit comments, wall comments, wiki etc.
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
388 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
1answer
4k views

Installing gitosis and closed port?

I'm trying to install gitosis on a Server (hosted by OVH and running Ubuntu server 11.04). I've done it a few times and never had any problems. But this time I have something very wired when I simply ...
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
304 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
613 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
826 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
999 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
90 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
166 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
359 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 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
221 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
506 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
796 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
304 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
3k views

can't git rm a directory

I accidentally added a directory to the list of items i'm supposed to git commit. Now when I try to run a git rm dirname, I get the error rm 'dirname' fatal: git rm: 'dirname': Is a directory I ...
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
2answers
4k views

How to uninstall git installed from the source? [closed]

I installed the git using this article. Now I want to uninstall the git. How to do it?
4
votes
3answers
3k 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
6k 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
5k views

Using rsync from msysgit for binary files

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
4k views

How to prevent ssh git push to set file ownership?

I have a remote bare Git repository on an Ubuntu server, where the files are owned by the user my_project and the group my_project, with permissions set accordingly. All commiters are themself in the ...
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
828 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
663 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
616 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
1answer
3k views

Trouble using gitweb with nginx

I have a git repository in a directory inside of /home/raynes/pubgit/. I'm trying to use gitweb to provide a web interface to it. I use nginx as my web server for everything else, so I don't really ...
4
votes
2answers
6k 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
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 = ...