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
13
votes
2 answers

git, nagios and hooks, corrupted git repo

Background We're using nagios to monitor our infrastructure. We don't have the nagios configs under version control at the moment, and there are two of us that manage nagios configuration. As such, I'm working to get our nagios config into a central…
EEAA
  • 109,363
  • 18
  • 175
  • 245
13
votes
6 answers

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

Specifically 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 etckeeper/git only tracks where the link points to,…
ErebusBat
  • 935
  • 4
  • 12
  • 21
12
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,383
  • 5
  • 26
  • 33
12
votes
3 answers

unable to access '/root/.config/git/attributes': Permission > denied”

In our Ubuntu Server we are able to clone as Nginx user in /usr/share/nginx/www that has www-data:www-data ownership getting a warning as ” warning: unable to access '/root/.config/git/attributes': Permission denied” We are executing the…
Geo
  • 575
  • 3
  • 9
  • 23
12
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
  • 257
  • 1
  • 2
  • 9
12
votes
3 answers

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 * (no branch) master Foolishly, I thought I…
interstar
  • 1,281
  • 4
  • 18
  • 23
12
votes
1 answer

How well does authorized_keys scale?

If I'm using something like gitolite to handle access control how well does authorized_keys scale? Meaning if I have say 50,000 users what will the performance be like (I'm guessing not very good). What are the alternatives? Update: I decided to do…
Jeremy
  • 123
  • 7
12
votes
2 answers

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 Sysadmin). I've set up two additional repos (EPEL and…
JR.Xyza
  • 135
  • 1
  • 1
  • 6
12
votes
1 answer

Can a very large /etc/hosts.deny slow down SSH connections?

I've been using denyhosts for a while and I noticed my /etc/hosts.deny is getting rather large. Denyhosts adds IPs to /etc/hosts.deny, and my denyhosts is configured to never purge IPs. $ wc -l /etc/hosts.deny 22149 /etc/hosts.deny Might this…
Adam Monsen
  • 725
  • 1
  • 7
  • 24
12
votes
5 answers

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 needed by git-1.7.1-2.el6.i686 libexpat.so.1…
CodeOverload
  • 315
  • 2
  • 7
  • 15
12
votes
2 answers

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 visudo Syntax highlight breaks right after the "-"…
Ben
  • 123
  • 1
  • 1
  • 4
11
votes
1 answer

jenkins fails to connect to git repository

I can't configure the git repository url in a way, that Jenkins could access it. under "Project > Configure > Source Code Management" I set the Repository URL to "git@store:repositories/testproject.git" I get this error: Failed to connect to…
Jörg Beyer
  • 213
  • 1
  • 2
  • 6
11
votes
3 answers

git vs Subversion - pros and cons

I have been a user of SVN for many years now and I can't say I am totally happy about it. Few days ago my partner asked me to take a look at git saying that "it has better performance, easier merging and branching." I've been reading some git vs.…
Adam Benayoun
  • 1,138
  • 2
  • 14
  • 26
11
votes
3 answers

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 run under their own user. Because I don't want to…
Jessie
  • 213
  • 1
  • 2
  • 6
11
votes
2 answers

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: Cannot access URL http://localhost/git/hello.git/,…
Nils Magne Lunde
  • 553
  • 3
  • 12