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
19
votes
6 answers

Git - post-receive hook with git pull "Failed to find a valid git directory"

It's very weird but when setting a git repository and creating a post-receive hook with: echo "--initializing hook--" cd ~/websites/testing echo "--prepare update--" git pull echo "--update completed--" the hook runs indeed, but it never manage to…
zanona
  • 345
  • 2
  • 3
  • 8
18
votes
3 answers

How do I uninstall gitosis?

I've installed gitosis on my dramhost machine but now I want to uninstall it because it's causing more problems than solutions. The thing is that I can't find how to uninstall it. I deleted the ~/repositories directories but of course all the bins…
Oscar Del Ben
  • 281
  • 2
  • 4
18
votes
2 answers

Which is better for website backup - rsync or git push

I run 2 LAMP web servers at different providers for disaster recovery purposes - a high powered live server, and a low powered backup server. Currently I rsync all the data from the live server to the backup server once every 4 hours. This works ok,…
David Laing
  • 283
  • 1
  • 3
  • 9
17
votes
3 answers

Use git for multiple server configuration files

We have migrated a lot of source code over to git and are very happy with our current solution. We would like to have our server configuration files versioned on the same system, but there are a few things that don't work the way we would like it to…
Kariem
  • 541
  • 2
  • 6
  • 14
16
votes
7 answers

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 me: Setting up Install Process Package…
Reza Sanaie
  • 469
  • 1
  • 5
  • 13
16
votes
5 answers

Git commit auditing

I have a git server running over ssh and each user has a unix account on the system. Given that two users have access to a repo, how can I be sure which user performed which commit, since the commit user name and email is submitted and controlled by…
yannisf
  • 577
  • 2
  • 6
  • 15
16
votes
4 answers

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, but not sure how. I have added one testUser to…
Bach
  • 343
  • 1
  • 3
  • 9
15
votes
3 answers

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 dragging and dropping in FTP. Any tips would be…
Tom Wright
  • 914
  • 3
  • 12
  • 25
15
votes
2 answers

Using LDAP as auth method for git repositories

I want to convince my boss that we should be using git for version control. He says, that it absolutely must authenticate users through our central LDAP server. I looked at the various solutions (gitweb, gitorious ... ) and couldn't really find a…
Leonard Ehrenfried
  • 371
  • 1
  • 3
  • 8
14
votes
2 answers

GIT repository over LAN

I am trying to setup a GIT repository over LAN in Ubuntu OS. I am able to setup a GIT repository, but not sure HOW TO expose the repository to other users in LAN. As it requires a server, I installed OpenSSH-Server. But don’t know HOW TO configure…
user20162
14
votes
2 answers

What "access rights" could be blocking access to a gitlab repository?

I'm trying to setup gitlab (6.5.1) on a fresh clean server. Everything appears to work, but git is unable to push to any project. Following the commands from the newly created project page and pushing to the remote via ssh gives: $ git push -u…
Caleb
  • 11,813
  • 4
  • 36
  • 49
14
votes
6 answers

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 This is not very satisfying since you cannot see which admin actually did the…
cweiske
  • 791
  • 1
  • 13
  • 36
13
votes
1 answer

Automatically sign all commits with git

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 commit -m 'Commit message'.
tamasd
  • 233
  • 2
  • 5
13
votes
2 answers

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 0 not upgraded. Need to get 0 B of archives.…
holms
  • 1,524
  • 7
  • 20
  • 37
13
votes
4 answers

Encrypt git repository on server (safe against theft of physical hardware)

I have a production server (Ubuntu, running 24/7) with a git repository and some client computers each with a working copy of this repository. In the client computers, simply using home folder encryption seems to solve the problem that in case of…
leemes
  • 301
  • 1
  • 3
  • 10
1 2
3
75 76