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

Why did git stop working after server disabled SSLv3?

Like most others, our repository server needs to disable SSLv3 (and v2) ASAP. However, doing so seems to break our git-clients -- at least, on RHEL5 (connections from my FreeBSD desktop work fine). Even the most recent git (2.1.2) fails, and…
Mikhail T.
  • 2,338
  • 1
  • 24
  • 55
5
votes
1 answer

Managing puppet modules with git

I have a puppet/foreman server running on Debian 7 for managing my systems. I use the community version 3.7 of puppet and foreman 1.6.0. I use directory environments. At the moment I use a rather complicated workflow for my self written modules of…
Christoph
  • 107
  • 9
5
votes
1 answer

SSL verification error with git (on github) on Ubuntu 14.04

I'm trying to clone the atom repository that just went fully open-source and I've run into some trouble. Attempting to git clone the repository is producing an SSL error: wug@wugputer:/src/test$ git clone https://github.com/atom/atom.git Cloning…
Wug
  • 151
  • 1
  • 5
5
votes
2 answers

Where to store VCS version in RPM?

We're using Git as our VCS and RPMs for packaging. I'd like to store the Git hash a package was built from, but I'm not sure on the most appropriate place. There are a number of tags available to an RPM, however I don't see any for a VCS version…
quickshiftin
  • 2,125
  • 5
  • 27
  • 41
5
votes
2 answers

Can I mod rewrite to a different document root?

Given a URL: http://example.com/some-file.zip The document root for example.com is /var/www/example.com/ I want apache to: If /var/www/example.com/some-file.zip exists, serve it. If /var/www/example.com/some-file.zip doesn't exist, check…
jshawl
  • 297
  • 2
  • 13
5
votes
1 answer

Git clone from Windows to Windows cannot find the repository

git clone gituser@:myRepo.git doesn't work, fails with the error message: fatal: ''myRepo.git'' does not appear to be a git repository Background: We have a Windows 7 machine set up with Git Bash and Bitvise WinSSHd (on C:). The SSH server…
wersimmon
  • 121
  • 2
  • 8
5
votes
1 answer

How can I use etckeeper via sudo with different users and have the correct user in the commit message?

I'm working on a server with several admin users. Each of them can use sudo to make configuration changes. We're keepeing our /etc directory version-controlled using etckeeper. However, when I or another admin calls sudo etckeeper commit…
andreas-h
  • 1,114
  • 1
  • 17
  • 28
5
votes
1 answer

Compliance in DVCS administration at an enterprise context, what to expect from a transition from a CVCS (Perforce)?

I work in a big multinational company as a software engineer and I'm currently holding a very nice conversation with IT and other developers with regards to adopting a DVCS (Mercurial and/or Git). One of the issues raised by IT was compliance and…
dukeofgaming
  • 619
  • 1
  • 7
  • 15
5
votes
1 answer

How to SSH gate forwarding git user to gitserver?

Im trying to set up ssh/git access through a ssh gate but googleing has come up empty. Basically I want any connection to my ssh gate from the user git to be forwarded to my ssh server so that pushes and pulls can me made remotely. However if any…
Johan
  • 51
  • 3
5
votes
3 answers

Migrate multiple svn repositories into single git repository

We want to migrate from svn to git permanently to be able to use git's better features in terms of branching and collaboration. Our current svn repository looks like this svnrepo/ frontend/ trunk branches/ ng/ ... …
Shyru
  • 53
  • 1
  • 3
5
votes
3 answers

Redmine 2.x with gitolite integration

Has someone here correctly configured Redmine 2.x (I'm using Redmine 2.0.3) with gitolite? If yes, how?
boos
  • 641
  • 1
  • 6
  • 8
5
votes
1 answer

Use Git hooks to auto format code after pull requests or commits or pushes/pulls?

Lets say you have a Git repository, like on GitHub, and you have a lot of people contributing to the repository. Everyone uses their own standards for coding, so the code ends up being a mess without any standards applied. I've read a bit about git…
Jake Wilson
  • 8,814
  • 29
  • 97
  • 125
5
votes
1 answer

GPG verifying git tags in a deployment script

We would like our deployment process to pull directly from our git repository, but only activate new changes if they are signed (via git tag -s) with a GPG signature. I've found very few examples out there of workflows that use GPG verification of…
larsks
  • 43,623
  • 14
  • 121
  • 180
5
votes
2 answers

Git fails to push with error 'out of memory'

I'm using gitosis on a server that has a low amount of memory, specifically around 512 MB. When I try to push a large folder (happens to be a backup from an android phone), I get: me@corellia:~/Configs/$ git push origin master Counting objects: 18,…
jwir3
  • 155
  • 1
  • 2
  • 10
5
votes
6 answers

Running git pull from a php script

I was trying the Perfect Workflow, with Git, GitHub, and SSH, but it seems i can't run git pull. I've tried git status and it's fine. When i git pull 2>&1 i get: error: cannot open .git/FETCH_HEAD: Permission denied I tried to chmod .git dir to…
AFRC
  • 153
  • 1
  • 1
  • 4