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

How to put FreeBSD configuration under Revision Control?

I heard once that in Linux it's possible to put whole /etc/ directory into repository. In fact i already done too much crap on server and I quite disoriented what exactly is setup in there at all. Question is how to put FreeBSD all configuration…
holms
  • 1,524
  • 7
  • 20
  • 37
7
votes
3 answers

Installing git with no idea about machine configuration

I have a user account on a Linux server (x86_64-unknown-linux-gnu, according to this). It apparently has no package managers in the $PATH (yum, apt-get, pkg, pkg-add, emerge, pacman), and it does not have cc. (edit by the way, this is a shared…
Dave DeLong
  • 323
  • 2
  • 10
7
votes
4 answers

Using symbolic links with git

I used to have my system configuration files all in one directory for better management but now i need to use some version control on it. But the problem is that git doesn't understand symbolic links that point to outside of the repository, and i…
Alfredo Palhares
  • 169
  • 1
  • 1
  • 2
7
votes
5 answers

How to store etckeeper repositories on a central server via git

I would like to have one central git repository for all my servers' etckeeper .git repos. Here the suggestion was to use a file in /etc/etckeeper/commit.d, which basically looks like this, assuming that a git repo had been set up in somedir on…
andreas-h
  • 1,114
  • 1
  • 17
  • 28
7
votes
1 answer

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 , git commit --amend --author "Foo ", and git rebase --continue, I was able to fix the logs for…
Chas. Owens
  • 2,053
  • 2
  • 21
  • 24
7
votes
2 answers

How to specify an SSH key for Hudson with git plugin?

I've got Hudson (continuous integration system) with the git plugin running on a Tomcat Windows Service. msysgit is installed and the msysgit bin dir is in the path. PuTTY/Pageant/plink are installed and msysgit is configured to use them. The…
jlpp
  • 256
  • 5
  • 10
7
votes
4 answers

fatal: http://myserverip/home/git/example.git/info/refs not found: did you run git update-server-info on the server?

I followed this example to set up a git repository on my server. It worked, and I successfully pushed my code to it. But now, how do I pull or clone? Using the docs, I tried git clone http://REMOTE_SERVER/home/git/example.git .. But for me, I'm…
bobobobo
  • 789
  • 6
  • 14
  • 26
6
votes
2 answers

ECDSA key fingerprint - looks like it is base64 encoded, but too few characters

I've setup a GitLab VM, and have created a project on it. Now I'm trying to connect to it from another machine using my git client (Git for Windows v2.7.1...also tried upgrading to latest version which is 2.15.1, but no change). On the Windows…
Anssssss
  • 163
  • 1
  • 6
6
votes
3 answers

Why is ssh not using identity set in config file?

I am trying to configure certain git repo to use a specific public/private key to authenticate. This is inside ~/.ssh/config Host Repo HostName bitbucket.org User git IdentityFile ~/.ssh/ynd LogLevel DEBUG And this is the log when trying to push to…
Evgeni Petrov
  • 163
  • 1
  • 1
  • 6
6
votes
1 answer

Make SSH server to forward connection per user

Is there any way to force OpenSSH (or create a proxy of some kind) to forward one user to one machine and another user to another machine just by the username that he (or she) provided? I've got following problem: I'm going to run GitLab in Docker…
Mikz
  • 171
  • 2
6
votes
1 answer

GitLab CE post-commit custom hook not working

I use GitLab Community Edition 8.2 and want to add post-commit hook. I created file path_to_project.git/custom_hooks/post-commit with rights $ ls -l1 custom_hooks/post-commit -rwxr-xr-x 1 git git 45 Dec 14 21:31 custom_hooks/post-commit and…
strangeman
  • 433
  • 5
  • 19
6
votes
6 answers

File permissions issue on OS X El Capitan and SMB share

Since we upgraded to OSX El Capitan we experienced some strange file permissions errors with our SMB server. We have a ubuntu server machine hosting our working files over a SMB shared folder to each of our Mac workstations. We use Git over SMB with…
Ambroise Maupate
  • 171
  • 1
  • 1
  • 4
6
votes
2 answers

How to set up Gitweb

I have set up Git on a server, using gitosis to control commit access. I would like to configure my Git system so that anyone inside our firewall can have read access to the Git repository, and I would like to set up Gitweb as well. I have found…
steveha
  • 1,019
  • 3
  • 11
  • 16
6
votes
1 answer

I would like Jenkins to fire a build when a patchset is uploaded or changed in Gerrit. How, exactly, do I configure this?

I am using Jenkins 1.557 to watch a Gerrit 2.8 instance for changes. I am using the following plugins: Git Plugin 2.1.0 Git Client Plugin 1.7.0 Gerrit Trigger 2.11.1 When I use "test connection" on the Gerrit Trigger, it returns success, so I know…
Ry Jones
  • 404
  • 8
  • 18
6
votes
5 answers

Limit ssh to local network, except for the git user

I have an Ubuntu 12.04 server set up with Gitlab and OpenVPN to serve as a git and vpn server for us. Currently I have opened up port 1194 in the firewall to open for OpenVPN and let users authenticate by a rsa certificate and a google auth key. I…
Trygve
  • 187
  • 1
  • 7