Git is a distributed source control system.

learn more… | top users | synonyms

137
votes
8answers
158k views

How do I share a Git repository with multiple users on a machine?

I have a Git repository on a staging server which multiple developers need to be able to pull to. git-init seems to have a flag very close to what I'm looking for: --shared, except I'd like multiple ...
298
votes
23answers
417k 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 ...
19
votes
10answers
26k views

Setting Up Git Repository on Remote Windows Server?

I have a windows server which I can access locally or remotely over the internet through remote desktop connection, etc. I want to set up a git repository (something similar to "trunk" in ...
5
votes
5answers
6k 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 ...
28
votes
7answers
10k views

Where's the conventional place to store git repositories in a linux file system tree?

If I make an analogy with the hosting of a web server, I would say that git's data should be in /var/git, so my git repository would be in /var/git/myrepo Q: Is that the right guess ?
0
votes
2answers
2k views

correct file permissions for trac and git user to access gitolite server repos

sounds like a stupid questions (to me), but i couldn't find any info. on my server i host some git repositories via gitolite, and have a trac for every repository. i have a user called git to ...
1
vote
2answers
6k views

how to install git on CENTOS 5.5

How can I install git on CENTOS 5.5 machine? I tried to install it from yum but got following msg. root@host [~]# sudo yum install git Loaded plugins: fastestmirror Loading mirror speeds from cached ...
9
votes
2answers
21k 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 ...
3
votes
3answers
26k views

Gitlab not working with SSH Keys

I am having issues with Gitlab. I used the following guide to install and configure Gitlab https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md. The installation seemed to ...
2
votes
2answers
1k views

Gitweb document root with gitolite

I'm on Mac OsX, trying to host my own git server. I've got gitolite running perfectly. However, I have a folder called "git" in my Sites directory, such that visiting http://git.example.com points ...
1
vote
1answer
235 views

Git prime/hub website deployment: documentroot changes save fine but permission denied for subdirectories

Following the instructions in A web-focused Git workflow I set up a prime and hub repository on my web server and then cloned the hub to my machine at home. I started testing commits and pushes with ...
1
vote
4answers
302 views

Reimport ssh certificate after every reboot for GIT PUSH over ssh to work

I am using OSX 10.8 on my macbook air, i have git configured to push my repository to an EC2 instance via ssh. Everything works fine with that. The only issue is that after every reboot, I have to ...
1
vote
1answer
2k views

Permission error with git on linux with bare shared repo

I've got a bare central repo that has this option turned on: git config core.sharedRepository true For some reason, the other users on this CentOS machine that pulls/pushes from the central repo ...
204
votes
10answers
101k views

How to tell which local branch is tracking which remote branch in Git?

I would like to know if there's a way to tell which local branch is tracking which remote branch in Git. I'm using one remote server, which is named "origin".
59
votes
4answers
32k views

How do I edit git's history to correct an incorrect email address/name [closed]

When I started using git I just did a git init and started calling add and commit. Now I am starting to pay attention and I can see that my commits are showing up as cowens@localmachine, rather than ...
63
votes
14answers
27k 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 ...
51
votes
4answers
51k views

What firewall ports need to be open to allow access to external git repositories?

What firewall port(s) need to be open to allow access to external git repositories?
27
votes
5answers
49k views

How to install git to red hat enterprise linux 5.3 x64?

How can I configure yum to use some repository which has git rpms?
13
votes
3answers
13k views

Setting up a git repo on my GoDaddy hosting plan

I have a project which is version-controlled using git. What I want to be able to do is set up a repo on my (ssh-enabled) GoDaddy shared hosting package so that I can deploy with a push rather than ...
11
votes
3answers
15k views

Enabling nginx Chunked Transfer Encoding

It looks like nginx 0.8.35 may support chunked transfer encoding: Changes with nginx 0.8.35 01 Apr 2010 *) Change: now the charset filter runs before the ...
7
votes
5answers
3k views

Is it possible to use etckeeper with a single shared git repository?

I noticed that several people have recommended using etckeeper to apply version control to my /etc directory. It appears to me that the default install puts a repository on the same machine as the ...
5
votes
1answer
6k 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 ...
9
votes
4answers
16k 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 ...
8
votes
5answers
7k views

Can't install GIT on a CentOS 6.0 x64

I'm trying to install GIT by either RPM or YUM but i can't. I get the following error: error: Failed dependencies: libcrypto.so.10 is needed by git-1.7.1-2.el6.i686 libcurl.so.4 is ...
7
votes
1answer
1k views

How do I fix the metainformation on the first commit in git?

This is a related question to How do I edit git’s history to correct an incorrect email address/name. Using git rebase -i <first commit>, git commit --amend --author "Foo ...
7
votes
4answers
3k views

Correct user names when tracking /etc/ in git repository and committing as root

We use git to track changes in /etc/ on our servers. Administrators work as root when changing files in /etc/, and thus their commits have author root <root@machinename> This is not very ...
6
votes
2answers
11k 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
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 ...
4
votes
3answers
8k 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 ...
11
votes
6answers
15k views

Yum doesn't install latest version of Git on Centos6

When I go to Gits download section it mentions that latest version is 1.8 and I can install it by yum install git on Fedora. I'm running CentOS6 so that command should also work for me, but yum tells ...
6
votes
2answers
3k 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 ...
6
votes
4answers
9k views

Create SSH user with limited privileges to only use Git repository

I have a git repository hosted on my SunOS server, that I remotely use through ssh git clone ssh://myUser@mydomain.com/path/to/git Now I need to add more users to be able to access that repository, ...
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 ...
3
votes
2answers
8k views

Failed to connect to repository - 401 on Jenkins + Codebase Git

I'm trying to get Jenkins to use Git as our SCM, and setting it up is being a bit of a pain. When specifying the Codebase Git repo to use, using the following format: ...
3
votes
1answer
1k views

UFW/IPTables: how to securely allow authenticated git access with github

This is how I setup my iptables with UFW: sudo ufw default deny incoming (deny all incoming) sudo ufw default deny outgoing (deny all outgoing) sudo ufw allow out 53 (accept outgoing DNS traffic, ...
3
votes
3answers
5k views

Ubuntu-server: gitosis user naming convention

If you install gitosis on ubuntu-server 10.10 via apt-get: sudo apt-get install gitosis The post-install script will create a new gitosisuser. This user will be used to allow people to connect with ...
2
votes
1answer
356 views

How can I make gitosis distinguish between two users with the same username

I have a gitosis system that seems to be working correctly except for a common problem we run into where I can't distingush permissions between two users who have the same username, but different ...
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 ...
3
votes
2answers
3k 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
2answers
10k views

Jenkins (Windows Service) with Git over SSH

I'm having a hard time configuring Jenkins, running as a Windows Service, to connect to a git server (gitosis) and clone a repository. Jenkins is set to use the standard Git plugin. Everything is ...
2
votes
1answer
2k views

Can't push to git remote repositories

I'm having trouble pushing my code to a git remote repository from my localhost. This problem only appears for repositories that were initially created with remote urls that are system directories ...
1
vote
1answer
1k views

Using GIT for backup. How to permanently remove deleted files from old revisions?

I'm using git for keeping all my sites backup here. It works very well, I can jump in and out of a expecific backup with a command. The problem is, this is incremental. Even if I exclude a file now, ...
0
votes
1answer
440 views

Determine branch in post-update hook

I have a git (gitosis) repo where every developer have a main branch. I have a script in post-update hook that rebuild main web site and test websites for every developer on every PUSH. I want to ...
5
votes
3answers
8k 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: ...
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 ...
2
votes
3answers
6k views

keeping a remote server up to date with git repo

So, I'm aware of git hooks, and will be looking into those next, but want to write a simple bash script, run via cron, to keep a repo on a remote server up to date. I imagine it working like this: ...
2
votes
2answers
765 views

removed large files from git repo; repo still humongous

I have, over the course of the last few days, removed several hundred megs of large text and binary files from a git repository that I had set up recently (I am relatively new to git). I did this in ...
1
vote
1answer
396 views

Perl compatability issues when installing Git on EC2

Can anyone help me install git on one of my EC2 boxes? When I run: sudo yum install git I get: Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:1.8.2.1-1.el6 ...
1
vote
1answer
685 views

Redmine not finding my Git Repo on Debian 7.3

I'm currently facing the problem, that I get the error message The entry or revision was not found in the repository. when I want to see the repository in Redmine 1.4.4. The repository path is set to ...
1
vote
1answer
1k views

Gitosis installation of public key not working

I've been following this tutorial to install and setup git on Ubuntu Server 10.04 using Windows 7 as a client. However, after finally figuring out how it works (executed gitosis-init a bunch of times ...