Git is a distributed source control system.

learn more… | top users | synonyms

2
votes
1answer
706 views

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 ...
2
votes
1answer
805 views

How to allow a git hook to run an executable with sudo by modifying /etc/sudoers

I'm using a git post-update hook to run a command via sudo, and I get the error: sudo: sorry, you must have a tty to run sudo. I believe I need to modify /etc/sudoers but I don't know how to do this. ...
2
votes
1answer
1k views

Sudo Error “ you must have a tty to run sudo”

I am trying to run the following command: sudo git pull; I get the following error: Command failed: sudo: sorry, you must have a tty to run sudo The command is being run from a nodejs server ...
2
votes
2answers
373 views

What's the difference between a normal/bare git repository? [closed]

This post says in a bar Git repository, there is no working copy and the folder (let's call it repo.git) contains the actual repository data however after experiment,I found it's not true. ...
2
votes
2answers
6k views

Jenkins (Windows Service) with Git over SSH

I'm having a hard time configuring Jenkins, running as a Windows Service, to connect to a git server (gitosis) and clone a repository. Jenkins is set to use the standard Git plugin. Everything is ...
2
votes
4answers
3k views

ruby on rails gitorious setup on ubuntu

Ive been trying to install gitorious for a while now which required ruby and rails etc. Ive finally got rails pages serving but cant finish the installation of gitorious because the gem version is too ...
2
votes
3answers
7k views

How to remove git mac os x

I've installed git on my mac, but I don't know how to completly remove it, because I want to reinstall it again...any tips?
2
votes
1answer
421 views

Git github not working with google authenticator OSX

So I had git running on my computer just fine. My password was saved with the osxkeychain thingy and everything ran smoothly. Today I decided I should be safe and enable google authenticator 2-step ...
2
votes
1answer
172 views

git auto complete freezes terminal when password required

When executing a command such as this git pull origin BRANCH-1 and hitting tab (auto complete) I get a password prompt like so: git pull origin BRANCH-1Password: Then the terminal freezes. The ...
2
votes
2answers
1k views

Add entire 300 GB filesystem to Git Annex repository?

By default, I get an error that I have too many open files from the process. If I lift the limit manually, I get an error that I'm out of memory. For whatever reason, it seems that Git Annex in its ...
2
votes
2answers
184 views

Using GIT to track changes in MDT 2012

Can I use SVN or GIT to handle version control and tracking changes for deployments built in MDT 2010/Deployment Workbench ?
2
votes
1answer
400 views

Seeking clean resolution for zombie who caused by git fetch / ubuntu motd

I have jenkins and gitosis running on the same [Ubuntu 10.04] server. Jenkins fetches git commits from a repo served by gitosis (also running on the same server). Many repos, actually, since there are ...
2
votes
1answer
2k views

git pull-push giving error

Hi i cloned a local repository on another server http://localipaddress/git/project . It created an empty repository. When i tried to pull from the repository, it gave me an error Your ...
2
votes
2answers
219 views

how to make chained ssh work with git

I am trying to get round a silly firewall issue. I am trying to chain ssh access to git through a proxy ssh: ~/git-chain: #!/bin/bash ssh hosticangetto ssh $* # End And then: $ export ...
2
votes
3answers
360 views

What's a sensible workflow for deploying webserver content using git push?

I'd like to use git push to update my (nginx) webserver content, while still keeping things secure. One way I could do this would be to ssh to my server, git pull from bitbucket into /srv/www, and ...
2
votes
3answers
1k views

How To Install Git Daemon on Ubuntu 10.04 Linux with SparkleShare (and use it like Drop Box)

I tried following this doc... https://help.ubuntu.com/community/Git ...but unfortunately the "initialKeyFileName" step is not explained.
2
votes
1answer
9k views

Git clone with user and password

I'm using Git on Windows with LDAP. No issue so far. When I'm cloning my remote repository I call: git clone http://user@host.com/name/.git and I got a prompt for password This is working. But now ...
2
votes
1answer
462 views

Git - Odd Disk Space Usage on GitHub

We use GitHub to host all my projects, and we've got a 6GB soft-limit. A few days ago, there were many files added to the repository which should not have been added (such as images, movies, etc.) ...
2
votes
4answers
797 views

Git vs Mercurial server on Windows

I am deciding between setting up a Mercurial or Git server (via HTTPS) on Windows Server 2008. I have heard that Git support is sketchy for Windows client use, but haven't heard much (that are up to ...
2
votes
2answers
1k views

Downloading a file (or list) directly from a git repository?

Is there an easy way to grab files or directory listings from a remote bare git repository (preferably over SSH or git:// protocols)? Background I am trying to migrate from SVN to Git and we have ...
2
votes
1answer
2k views

git diff between two branches when the path has changed

I need to understand changes to a file between two releases represented by my current master and branch new_branch. Normally, I would run the following if path/name are the same in both branches. ...
2
votes
2answers
787 views

Installing gitweb failed: No package gitweb available

I have tried installing gitweb via ssh and failed. Below is what I get. root@server [~]# yum install gitweb Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * rpmforge: ...
2
votes
1answer
928 views

Git multi-master, is it possible? [closed]

Is it possible to set a dual master GIT repositories? I would like to set up two different servers which I could push and commit to and changes on any of them would be propagated to the other. I've ...
2
votes
3answers
1k views

Giving PHP the permission to make a git pull request

I would like to allow PHP to execute a Git pull command. But there are some problems with the user and permissions. How did you solve the problem? PHP runs as user www-data. Therefore I've changed ...
2
votes
1answer
907 views

Opsworks Custom Layer deployment

I am trying to use a custom layer in AWS Opsworks to add a nginx webserver. I have successfully created the layer, I added my app via GIT (no password on repo), but when I deploy the command is ...
2
votes
3answers
691 views

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 ...
2
votes
1answer
230 views

CGI permissions with NGINX & FastCGI

I'm running GitWeb (which is essentially a CGI script) on a server which also runs GitLab. My aim is to provide reaad-only access to GitLab repositories without registering people. I've pointed ...
2
votes
1answer
72 views

Ideal robots.txt for a gitweb installation? [closed]

I host a few git repositories at git.nomeata.de using gitweb (and gitolite). Occasionally, a search engine spider comes along and begins to hammer the interface. While I generally do want my git ...
2
votes
1answer
524 views

Why do I keep getting bad index files with Git [closed]

I keep getting the following error: error: bad index file sha1 signature fatal: index file corrupt And I know the short term solution is just to delete the index and away you go but my question is, ...
2
votes
2answers
616 views

How can I get “mirrored from” on a GitHub repo?

I noticed that https://github.com/apache/ant says "mirrored from git://git.apache.org/ant.git" (with a link) and I'd like to do the same. https://exyr.org/2011/git-mirrors/ seems like a good write up ...
2
votes
2answers
141 views

GIT Website Delopyment including submodules

So I got a GIT repository with a couple of submodules. Now i created a "post-update" hook on my webserver that automatically deploys my website on update. That's how my post-update hook looks like: ...
2
votes
2answers
209 views

GIT and Django Projects

I have two servers, a Dev server and a Production server. The Production server runs a live Django site, while the Dev server has a copy of the Django project. I use the Dev server to work on the ...
2
votes
1answer
471 views

How to globally limit memory usage of git

I have a Virtual Private Server where all my products' git repositories are. The problem is that while I fetch from it, the VPS dies out of memory. So I have to limit the memory usage. I know how to ...
2
votes
2answers
507 views

Git branch and subdomain

Well, this is an idea that came to my mind a couple days ago and I could figured out how to do it (and even if it would be possible). My idea would displaying a different branch when you access the ...
2
votes
2answers
1k views

Gitweb document root with gitolite

I'm on Mac OsX, trying to host my own git server. I've got gitolite running perfectly. However, I have a folder called "git" in my Sites directory, such that visiting http://git.example.com points ...
2
votes
1answer
1k views

Errors while trying to install gitolite

I'm trying to get up and running gitolite as the instructions said at this http://sitaramc.github.com/gitolite/qi.html but when I run the command: [git@devserver gitolite]$ src/gitolite install -ln ...
2
votes
1answer
130 views

Too many git pulls at once don't work

I have a deploy script where I want all of my webservers to simultaneously perform a git pull from the same place. When only two servers do the pull simultaneously, there are no problems. Once I have ...
2
votes
2answers
2k views

Can I deploy via Git to Rackspace Cloud Sites?

I was wondering if anyone knows of a way to deploy to Rackspace Cloud Sites via Git-push? I contacted the Rackspace support and all they can tell me is that I might be able to as long as I don't need ...
2
votes
1answer
391 views

Deploying git repo on production server without account password

What I would like to do How can I clone a git repository on my production server, without providing the account's password, and passphrase for the SSH key? Perhaps what I'm asking is not possible. ...
2
votes
1answer
472 views

Installing packages without internet access

I am trying to install git on a SUSE linux server that, to all intents and purposes, doesn't have internet access. It would appear that I also need to install some dependencies for git. Is there ...
2
votes
1answer
407 views

Enabling HTTP_CONNECT for port 9418

I wish to configure the proxy to allow HTTP_CONNECT over port 9418 for git downloads . How should I go about doing it ? Thanks .
2
votes
2answers
218 views

“Half” ssh authorization to a server with git repository

Currently I have purchased web hosting with ssh access. I have created a git repository on it and if I set my public key in ~/.ssh/authorized_keys file, I have access to that repo, I can push/pull ...
2
votes
1answer
418 views

Setup SSH key per user for Git access

I'm setting up a site that will have multiple development instances running on the same server. Essentially, we'd have dev-a.whatever.com, dev-b.whatever.com, etc.. all running off a single server. I ...
2
votes
1answer
351 views

How can I make gitosis distinguish between two users with the same username

I have a gitosis system that seems to be working correctly except for a common problem we run into where I can't distingush permissions between two users who have the same username, but different ...
2
votes
2answers
2k views

Permission denied (publickey) error

I'm trying to connct to github via shh with using following command: ssh -v github.com But i have error Permission denied (publickey). I generated rsa keys with ssh-keygen command keys are located ...
2
votes
2answers
1k views

How is gitosis-serve invoked?

I have a working installation of Gitosis, but I'm wondering how the gitosis-serve command ever gets invoked! From all I can understand, when you connect through SSH as the git user (using git@host), ...
2
votes
2answers
516 views

Gitosis post-receive hook before initial push

I have a script on the client machine that adds the necessary configuration stuff to gitosis.conf on the server. I'm able to push and everything works correctly. However, I want to add a ...
2
votes
1answer
324 views

Test and Production Server

I am using Git for a test and production server and I'm trying to figure out the best way to update the production server. I have limited SSH access, and don't want to manually update my production ...
2
votes
4answers
127 views

setting up repositories for users, what does this entail? [closed]

Say I wanted to setup a server, where I could create GIT repositories for users. I would only give them access via SSH. I would need to restrict them to say 100megs or 1 gig etc. Is this a ...
2
votes
3answers
2k views

GIT server with username and password authentication

I would like to set a GIT server and let my developers to login using username and password in order to commit and make changes to the projects. I need also to manage developer access to projects (I ...