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

1135 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
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…
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,…
17
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
  • 597
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
  • 591
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…
16
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…
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 ssh,…
Bach
  • 343
15
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
  • 253
15
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 <root@machinename> This is not very satisfying since you cannot see which admin actually did the…
cweiske
  • 823
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…
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
  • 12,281
  • 4
  • 40
  • 49
13
votes
2 answers

How do I make GitLab delete old backups?

I use the rake task to create backups for GitLab 6.8.2. gitlab-rake gitlab:backup:create In /etc/gitlab/gitlab.rb I added the following line: gitlab_rails['backup_keep_time'] = 60 This is supposed to prune backups older than 60 seconds. My…
Jan Deinhard
  • 2,403
13
votes
8 answers

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 go well and all. The web application seems to be…
greyfox
  • 267
1 2
3
…
75 76