Git is a distributed source control system.

learn more… | top users | synonyms

0
votes
2answers
156 views

List linux users

I need to find a group in linux that doesn't appear in my /etc/groups file. I run the following command and get an error sudo adduser --disabled-login --gecos 'GitLab' git adduser: The group `git' ...
0
votes
1answer
55 views

Structure for Version Control system - configuration and scripts

We are planning to introduce version control for our servers team so we can keep our config files and code neat. The server base are mostly Windows with some Linux and spread across several ...
0
votes
1answer
297 views

git-http-backend, ro for all, write requiring password? (with lighttpd)

I'd like to offer up read-only access to my GIT repos for everyone (i.e. no username/password required), but require authentication for writing. The git-http-backend man page suggests this is ...
-1
votes
1answer
662 views

Automate git-pull, stuck with keychain

I'd like to create a cronjob to automatically run a git-pull every minute. The problem is that my repo is private, I had to create keys on my system (Ubuntu Server 12.04). I installed keychain and ...
2
votes
4answers
488 views

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 ...
1
vote
1answer
325 views

How to setup Git Linux server for Windows domain clients via SSH?

Is this combination possible? Server: Git on Linux Clients: Windows Authentication: Windows domain credentials Transport protocol: SSH If yes how would this be accomplished?
3
votes
1answer
683 views

Git clone from Windows to Windows cannot find the repository

git clone gituser@<server>: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 ...
0
votes
1answer
645 views

How can I configure git to reject large files?

For the 3rd time a developer committed a large file in our git repository (over 100MB). It's really a pain to cleanup. How can I configure git and/or gitolite to prevent large files from ever being ...
0
votes
1answer
3k views

Trying to clone a bare git repo: Could not read from remote repository

I set up a git user on my Mac OS 10.7 system. In the root, there's a /repositories/test.git repo. When trying to clone it with git clone git@server:repositories/test.git it fails me with: bash: ...
0
votes
1answer
614 views

sudoers nopasswd switch user and run node not working

I'm trying to prevent a password prompt on a command that runs node as the www user by adding the following line to the bottom of my /etc/sudoers file: gituser ALL=(ALL) NOPASSWD: /usr/bin/sudo -u ...
0
votes
1answer
6k views

Git clone works fine but git push doesn't

I have created a test git repo on Git server: /var/cache/git/username/myGitRepo.git Which is a 'bare' git repo. The ownership of the files belong to this 'username' user. I can clone the above Git ...
1
vote
1answer
1k views

git push origin master result : REJECTED_OTHER_REASON

I've made a personal repository on my server. I can clone it. I've get errors on push refusing update .... ... 'receive.denyCurrentBranch' configuration variable to 'refuse'. ... ...
0
votes
0answers
48 views

git clone from iMac to MacBook Pro error

When cloning a git repository via ssh I get the following error: git clone ssh://user@iMacHost.local/Users/home/git/projects/Stock.git Cloning into 'Stock'... hdiutil: attach failed - No such file or ...
0
votes
1answer
131 views

Why all git heads are not shown on gitweb?

When I running following command, its showing me three git branches me@myhost:~/myrepo$ git branch * master new_branch third However the gitweb is showing only two branches. Only master and ...
2
votes
1answer
161 views

Alternative to Samba with XAMP stack

I am currently setting up a server on my network for web development work and was wondering if there is any better way of doing what I intend to do. My work machine is a Windows 7 desktop and I am ...
2
votes
2answers
93 views

Revision control of sensitive configuration files

Consider a file with user-read-only permissions, for example ... -r--------+ admin secrets.txt How can such a file be put under revision control, so that its contents remain secret, even from the ...
0
votes
1answer
667 views

Git, plink, and cmd.exe: how do I set plink.exe to be verbose when used as GIT_SSH

How can I configure plink.exe to be verbose when run by git? The problem: on windows, using the command git.cmd clone git+ssh://user@host/repo folder when GIT_SSH=plink.exe intermittently fails ...
0
votes
2answers
3k views

SSH to bitbucket returing Permission Denied (publickey)

So I am trying to clone a repo to a directory on my Ubuntu server but I keep getting a Permission Denied (publickey) error. This is very weird because my output for ssh -T git@bitbucket.org shows ...
0
votes
2answers
797 views

how to make git smart http transport work on nginx?

I've tried this in many different ways. Here is probably the best configuration I've managed to come up with. nginx: server { server_name git.domain.com; access_log ...
0
votes
2answers
755 views

Kerberos authentication for Git server?

I have a Git server, and I want to make it usable by all Kerberos-logged users. eg: if a user has a valid Kerberos ticket, she can start pushing to Git without having to provide any ...
2
votes
2answers
294 views

GIT SVN with subgit and apache

I've started evaluating a piece of software called subgit which seamlessly allows you to interface a repo with either SVN or GIT. Throughout our organization we interface our repos using apache, and ...
4
votes
2answers
1k views

Is it safe to use git with multiple users when the repository is on a windows file share?

We are a team of less than ten persons that need to quickly set up a git repository that supports active directory based authentication. The simplest solution seems to be to use a file share with a ...
0
votes
1answer
143 views

How can I run git daemon using launchd (on demand, inited style)?

I am trying to run git daemon using launchd (on demand, inited style). But git clone git clone git://127.0.0.1/testrepo fails with Cloning into 'testrepo'... fatal: unable to connect to 127.0.0.1 ...
1
vote
1answer
87 views

How can I set Apache's .gitignore file?

I'm running a local dev server on Apache. I have a script (written in PHP) that scans all of the local dev sites I have up and running, and tells me which have outstanding items to commit to git. When ...
1
vote
0answers
193 views

Write issues on Linux Samba shares with OS X clients

Our web development company has a Linux server with a Samba share which employees use to develop websites. On the Samba share are numerous directories which serve as document roots for a webserver ...
1
vote
2answers
78 views

Securing a remote LAMP server that uses Capistrano for Git deploys

I am deploying my Github repo to a Media Temple Grid Server using Capistrano. In order to do this, I've setup the following: Enabled logging into the remote server with SSH keys (following this ...
1
vote
1answer
229 views

Backing up multiple git repos of the same project (deduplication)

I use a central git server (a gitlab instance). Developers clone projects to a samba share on another server. At the moment, I make backups of the gitlab server and all of the developers directorys on ...
0
votes
4answers
650 views

SSH Connection timed out even without a valid key

So I have done the same process over and over again and everytime worked perfectly, but on thie particular server it just won't work. I've tried any written suggestion on the Internet + serverfault ...
0
votes
1answer
401 views

Why can I not access git on a Windows share over VPN?

I'm currently connected to a VPN, but the machine I'm on is not connected to the Windows domain that the rest of the network is on. On that network is a Windows 2008R2 server that I am an admin on. ...
1
vote
1answer
2k views

Git server SSH user authorization failed

I have been installed gitlabhq on SERVER. I have issue while cloning repo from client machine. Not work: client> git clone git@my.serv.ip.addr:myrepo.git /tmp/myrepo client> ssh ...
1
vote
1answer
1k views

how to solve the error: “ssh_exchange_identification: connection closed by remote host”

I have been researching for hours and still unable to solve my problem. This error "ssh_exchange_identification: Connection closed by remote host" has many proposed solutions but none seem to solve ...
1
vote
2answers
506 views

Git Smart HTTP(S) with a URL redirect, not working

I am trying to have GitList (PHP web viewer for git) and GIT Smart HTTP(S) under the same domain git.domain.ext. The following is the actual setup: GIT Smart HTTP URLs are the form ...
1
vote
0answers
327 views

Apache looking for wrong directory in git-http-backend configuration

I wouldn't be posting here unless I've run out of options. Be forewarned, I could be making a very simple rookie mistake. I'm trying to set up the git-http-backend on Ubuntu Server 12.04. I've gone ...
3
votes
4answers
265 views

Migrating a simple BASH update script from SVN to GIT

We used to keep our Nagios config up to date through SVN, with users commiting their changes and a script running every 15 minutes. The script checked for updates, then checked those updates parsed ...
-1
votes
1answer
82 views

How to use Use git+gerrit

I want to configure Git + Gerrit but I don't know how to proceed; I have some questions: Can we use our own Gerrit server or can we use online gerrit servers also? How my project will be ...
1
vote
2answers
482 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 ...
1
vote
1answer
355 views

New Users are unable to connect to gitolite/git on amazon aws

These are the steps I followed for setting up a new user on gitolite hosted on amazon aws: 1. Installed gitolite (works - I can can connect as admin & add new repos/users) I added a test repo ...
2
votes
1answer
272 views

Uninstall Gitorious

I have installed Gitorious on my CentOS server but the ssh public key authentication method does not serve my purpose as most of the users are on Windows and will be using more than one computer. I ...
0
votes
1answer
62 views

Get a URL of a GIT repository on my server

I've started using codebase to manage my GIT repositories. I also have GIT installed on my Debain box. There is an option on codebase to "Push to External Repository" which I'd like to do. This ...
3
votes
3answers
1k views

user unable to connect to git (using gitolite on ubuntu)

I was able to run the following command: git clone admin@ip address:gitolite-admin.git When I tried adding a new user using the steps below, the new user was unable to connect: Steps taken so far: ...
1
vote
1answer
921 views

git aws.push returned error 403

I'm working on getting git setup for my application on Elastic Beanstalk. I've been following the instructions provided by amazon. After pushing the changes I get this error git aws.push error: The ...
1
vote
1answer
589 views

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: ...
0
votes
1answer
124 views

Run Git as Apache on remote server

I’m trying to set up a workflow where my code base is version-controlled under Git, and then deployed to a live server over SSH. I wrote a simple shell script that I run from my machine that opens an ...
0
votes
1answer
323 views

SSH failing from script, working on command line (Git)

Have 3 servers: Local, Bare, Development. The following workflow works perfectly: 1. Make my local changes 2. git push to Bare 3. ssh into Bare 4. $ ssh ip.of.Development.server "cd ...
0
votes
1answer
694 views

GIT issue in AIX 6.1

I recently installed GIT 1.8.1 on my AIX 6.1 machine and am facing a few issues with it. Now if I login as root and issue git commands like git --version I get the response as shown : Code: git ...
0
votes
1answer
905 views

pulling git-via-ssh repo via Puppet: “Could not create repository (non-repository at path)”

I'm trying to pull a git (github) repo via Puppet. I've used the official vcsrepo documentation and borrowed from the Fiesta post to come up with the following config: vcsrepo { "/tmp/": ensure ...
0
votes
1answer
174 views

Write permissions of www-data user and public key issue

I am using Ubuntu and I am having the following problem. I am using a PHP function called exec to get the latest git changes from my remote repo. E.g.: exec("git pull");. The file is placed in ...
-3
votes
2answers
345 views

Simplest way to jail users for git [closed]

I'd like to create a couple user accounts on my server such that the users can check out a specific git repository. Ideally, the user would not be able to gain access to a shell or copy any files ...
3
votes
3answers
4k views

Git clone/pull across local network [closed]

I'm trying to clone/pull a repository in another PC using Ubuntu Quantal. I have done this on Windows before but I don't know what is the problem on ubuntu. I tried these: git clone ...
5
votes
1answer
924 views

Multi-server Deployment strategies - Git on production servers?

Main question: Is deployment using Git on production servers a good strategy? Many, many deployment strategies I see revolve around having Git on your servers (dev, staging and production). The ...