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
11
votes
4 answers

Deploying Files To Multiple Servers

We have a central repository of files in say server-1 at /srv/www. Then we have N number of servers as well. We want server-1 to be able to deploy its files in /srv/www to all servers as quickly and efficiently as possible. Is there something like…
Justin
  • 5,328
  • 19
  • 64
  • 84
11
votes
5 answers

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 /etc you are trying to manage. This works fine for…
Brent
  • 22,857
  • 19
  • 70
  • 102
11
votes
4 answers

How do you move your Git repository from one server to another?

I need to move Git to a new location and was wondering if there's a way to just rsync my git repository to a new location?
user41422
  • 131
  • 2
  • 6
11
votes
6 answers

How do I get transparent, efficient, file system snapshotting or versioning on ext3/4?

I've long thought about versioning file systems. This is a killer feature and I've looked at Wayback, ext3cow, zfs, fuse solutions, or just cvs/svn/git overlays. I consider ext3cow the model for my requirements. Transparent, efficient, but I can do…
Dale Forester
  • 241
  • 2
  • 5
10
votes
5 answers

Replace gitolite3 user with git

I am installing gitolite3 on a server, with ssh and http pulling/pushing/alltherest. During the process, a user and group gitolite3 is created. When I run: $ ssh gitolite3@server info I get the correct gitolite3 message with RW repo…
Florian Mertens
  • 413
  • 4
  • 10
10
votes
3 answers

How to delete Git repository with Gitosis

I'm using Gitosis to administer some Git repositories on a remote server. Since I'm at the beginning with it, I make a lot of mistakes. That's why right now I need to delete a Git repository that I created with Gitosis. Is this possible using…
Ionuț G. Stan
  • 385
  • 1
  • 4
  • 12
10
votes
2 answers

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 the whole afternoon and I think I'm stuck. I have…
Arnaud
  • 209
  • 2
  • 5
9
votes
2 answers

Git clone from Bitbucket.org on EC2 server using SSH keys

We have setup a EC2 build server and would like to use SSH keys to clone the repo. Steps taken: cd ~/.ssh ssh-keygen -t rsa created config: host bitbucket.org HostName bitbucket.org IdentityFile ~/.ssh/bitbucket_rsa User git Loaded public ssh…
Michael Hobbs
  • 255
  • 3
  • 8
9
votes
2 answers

How to set up a secure Git repository?

I followed this tutorial to set up a git repository on an EC2 instance. http://git-scm.com/book/ch4-4.html. Basically, I add a new git user and include my public key in authorized_keys. After setting up the git user, I just initialize a new repo by…
gerky
  • 291
  • 1
  • 4
  • 14
9
votes
2 answers

Can browse, but can't ping

I am behind a corporate network. I am unable to use git, since it can't resolve server names fatal: Unable to look up someserver.org (port 9418) (No such host is known. ) I can't ping that server (name nor ip) either, but my browser is resolving it…
Kimi
  • 213
  • 1
  • 2
  • 6
9
votes
4 answers

etckeeper pushing to github

I set up etckeeper and added the file /etc/etckeeper/commit.d/60github-push in order to push the commit to github. [orschiro@thinkpad etc]$ sudo cat /etc/etckeeper/commit.d/60github-push #!/bin/sh set -e if [ "$VCS" = git ] && [ -d .git ]; then …
orschiro
  • 193
  • 1
  • 5
9
votes
4 answers

How to make sshfs + VPN + git a tolerable working environment?

Currently the code base for the project I am working on is remotely on a company server. and it has to stay like that. also the remote git repository cannot be made public. My current setup is: Connect to the VPN run sshfs to mount a copy of the…
Asgaroth
  • 199
  • 1
  • 5
9
votes
1 answer

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 look and then git checkout master. And it seems…
koddo
  • 215
  • 1
  • 4
9
votes
2 answers

Why does the Debian Lenny git package not install git?

If I run the following command on Debian Lenny: apt-get install git ... I'm unable to use git: # git --version bash: git: command not found
Nick Bolton
  • 5,126
  • 12
  • 54
  • 62
9
votes
4 answers

How to stop git-daemon on debian

I'm running debian lenny server, and I've installed git on it. Now there is a git-daemon process (and appropriate opened port), but there is no /etc/init.d/git script that I could stop. I know there is /etc/sv/git-daemon/run but that doesn't help me…
Slartibartfast
  • 265
  • 1
  • 4
  • 8