Git is a distributed source control system.

learn more… | top users | synonyms

3
votes
1answer
329 views

Ansible git clone from private repo in Stash

For the life of me I can not figure out why I can not clone a private repo from Stash. Think I have tried: 1) Create 'ansible.cfg' with [ssh_connection] ssh_args = -o ForwardAgent=yes On my ...
3
votes
1answer
2k views

Using npm install as a MS-Windows system account

I have a node application running on Windows, which I want to be able to update automatically. When I run npm install -d as the Administrator account - it works fine, but when I try to run it through ...
3
votes
2answers
895 views

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. ...
3
votes
1answer
3k views

Missing Dependency: perl(YAML::Any)

I have a problem with git, when I run yum upgrade on a centos5 server. yum upgrade output: Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:1.7.11.3-1.el5.rf ...
3
votes
2answers
638 views

deploy git project and permission issue

I have project hosted with gitolite on my own server, and I would like to deploy the whole project from gitolite bare repository to apache accessible place, by post-receive hook. I have next hook ...
3
votes
2answers
2k views

Virtualmin & git integration [closed]

I've installed virtualmin on my VPS to manage my websites. It's working perfect and as expected nearly a year now. Recently I wanted to add some features to one of my sites, and I need git integration....
3
votes
1answer
650 views

Git Server Side Hook using C#

With subversion and VisualSVN I was able to put a .net binary file as the hook using c# and building the assembly. You just put a file called Post-Commit.exe in the hook folder and it works. With git ...
2
votes
3answers
6k views

git prevent push to master

This is my first time setting up a git server, so I don't really know what I am doing yet. Anyways, I have a git server setup with a user, What I want is to have multiple developers that can create ...
2
votes
2answers
3k views

How to ignore files in git?

I want to git ignore cache directories in my project. I read on the internet that I'm supposed to use the gitignore command. But when I did, bash complains about command does not exist. I tried ...
2
votes
3answers
103 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 ...
2
votes
3answers
106 views

Using git to deploy

Is there a way to deploy/deliver a git branch to different servers via SSH by using git ? Without setting up a git server, using services like github or connecting to the remote servers and pulling ...
2
votes
1answer
14k 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 ...
2
votes
2answers
92 views

How to keep track of the serverconfiguration: keep entire “/etc” in git

I want to keep my whole /etc folder in a git repository to track unauthorised changes by intruders and find out mistakes I could have done myself. What would be the right way to achieve this?
2
votes
3answers
481 views

What's wrong with this bash prompt?

I use the following entry in ~/.bashrc file to colorize the prompt and display current branch of git repository: PS1='\[\e[1;32m\]\[\u@\h\]\[\e[m\] \[\w\]\[\e[1;1m\]\[$(__git_ps1 " (%s)")\] \[\e[1;1m\...
2
votes
3answers
2k views

git post-receive hook doesn't get promised arguments

From the post-receive file: # This script is run after receive-pack has accepted a pack and the # repository has been updated. It is passed arguments in through stdin # in the form # <oldrev> ...
2
votes
4answers
937 views

Setting up a Git server

My team is working with several RedHat Linux servers and we'd like to synchronize our sources from one server to another (for several distinct projects). I'd like to set-up a git-server as a version ...
2
votes
3answers
624 views

git repo for dotfiles - clone to homefolder

I'm learning git, and the test case I'm using it for is keeping a repo of my linux profile settings (.bashrc .profile .tmux.conf etc) on my main machine, the repo is created at the home folder: base=...
2
votes
3answers
5k views

Git master repository on central server?

currently i am working with subversion and trying to switch to git as an RCS. Maybe i don't understood the principle of git correct, but there is one big question: Does git need some kind of server ...
2
votes
3answers
6k views

keeping a remote server up to date with git repo

So, I'm aware of git hooks, and will be looking into those next, but want to write a simple bash script, run via cron, to keep a repo on a remote server up to date. I imagine it working like this: ...
2
votes
1answer
3k views

installing git from debian wheezy backports: anyway i see old package version

I need to install git 1.8.* version. I added backports to my sources.list; Removed current installed git via apt-get remove git; Executed apt-get update to update my packages list aptitude show git ...
2
votes
1answer
694 views

Change ssh ControlPath with host-specific declaration

I have a situation where I need to access the same SSH host (GitHub) with two different SSH keys. This is no problem and I can set it up easily by aliasing the hostname. The problem comes when this ...
2
votes
3answers
3k views

How can I get the git-all meta package on RHEL 6.2

I believe I'm missing some of the common git addons, such as gitk, and I suspect it is because I installed git using sudo yum install git as the information for that package lists: : The ...
2
votes
2answers
10k 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
3answers
1k views

Git: Is there any GUI for setup a central repository?

I am looking for a wizard-GUI-like interface to create a central repository Git accessible to multiple users with authentication. Is there any GUI for an easy setup a central repository on windows or ...
2
votes
2answers
767 views

removed large files from git repo; repo still humongous

I have, over the course of the last few days, removed several hundred megs of large text and binary files from a git repository that I had set up recently (I am relatively new to git). I did this in ...
2
votes
1answer
482 views

is git any more or less effecient than subversion? (server load wise)

curious which source repo is more effecient in terms of using server resources, git or svn?
2
votes
2answers
406 views

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 ...
2
votes
2answers
561 views

GitLab Automatic deploy

I will be creating a gitlab server at my school to host class code. I wish to make it so that every time any user pushes to gitlab it automatically deploys the project to /var/www/gitdeploy/<repo-...
2
votes
3answers
2k views

Using a non-root to deploy a git repo to the web root

What is the best way to set up users and permissions for a production web server that uses git to deploy to the server? Background Running Ubuntu 12.04, I have apache serving files under /var/www as ...
2
votes
1answer
1k 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
2k 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
431 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
4answers
4k 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
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
3answers
8k 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
2answers
2k views

Install a newer version of Git on CentOS 7

I like to enable Git "Push to Deploy" on my CentOS 7 server. Currently I only can get Git 1.8.3.1 via yum. I need a newer version. Do I have to build it from source or is there any repo I can use? I ...
2
votes
2answers
3k views

Move repo from plain git to GitLab server

I have two servers, an older server running plain git with three repositories under /opt/. These projects are now to be moved over to a new server where I choose to run gitlab for the sake of the GUI ...
2
votes
1answer
583 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
3answers
1k 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
197 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
343 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
566 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
259 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 GIT_SSH=~/...
2
votes
3answers
373 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
3k views

ssh hostname returns “Bad owner or permissions on ~/.ssh/config” (chmod 600 not working with MingW)

This question is a near duplicate of Robert's question but after trying chmod 600 ~/.ssh/config I still have the same error. I've tried using cygwin and MINGW32 to do the chmod 600. ls -la returns -...
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
540 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
809 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
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. ...