Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

learn more… | top users | synonyms

3
votes
2answers
19 views

How to securely manage etckeeper from gitolite?

I want to maintain my debian servers by pushing etc into gitolite. The problem is that gitolite shouldn't be run as root and neither as a user that can get shell access into the system from the ...
2
votes
1answer
19 views

git archive including uncommitted modified files

so git archive --format=tar HEAD will give me a tar archive of the latest commit on the current branch. Is there a version that would include local modifications to tracked files that have not yet ...
2
votes
1answer
21 views

extract snapshot of git repository at a given time

I have cloned a xorg git repository: git clone git://anonscm.debian.org/pkg-xorg/driver/xserver-xorg-video-intel and I need to extract all files as they looked after commit ...
0
votes
0answers
20 views

Use Raspberry Pi as Team Git Server

I've installed git on my raspberry following This How To. I need to use git for a team server. I have a problem: I can't clone repository in the local PC However a can commit without problem ...
2
votes
2answers
31 views

git diff - listen for key press

I want to run the following commands: git diff git commit git commit will open the default editor to edit the commit message. But if the difference if not too long it will close immediately. How ...
0
votes
1answer
57 views

No package * available. cannot install git through yum

I am trying to install git on my Red Hat Enterprise Linux 6.5 server and have hit a brick wall. I can't find the package dependencies for git using yum. [root@FOOBAR mydir]# yum install ...
2
votes
1answer
116 views

How to setup a RAID system using USB sticks as storage media

I want to create an inexpensive self-hosted private git server with redundant storage. To that end I have bought a Raspberry Pi and configured both git and ssh on the Pi. I can access the Pi both from ...
3
votes
1answer
50 views

Is it possible to remove “ssh://” from git remote's URLs?

I'm used to create some manually-made repositories to push code to my pet server or share code inside my company. I use the URL ssh://user@ip/folder.git to add as remotes to my workspaces. I was ...
1
vote
0answers
32 views

git push in gnome-term crashes my window manager

In terminal in awesome wm when i git push awesome wm freezes. so i move over to tty2 and log in. top shows awesome at %100 cpu. ps aux | grep [g]it output git-remote-https origin ...
1
vote
2answers
56 views

Automatically backup usb drive to computer

I am trying to create a personal sync system for my project. I don't want to use something like dropbox, bittorrent sync, owncloud etc for various reasons. At the moment, I have my computers setup ...
1
vote
1answer
39 views

How to set multiple `core.excludesfile` in `.gitconfig`?

I'm syncing ~/.gitconfig and ~/.gitignore files in ubuntu and Mac by using dropbox and created symlink for it. And excludesfile is declared like this. [core] editor = /usr/bin/vim ...
4
votes
1answer
106 views

How to create a git repo using Nginx?

I've a CentOS 5 server at domain.fr. I am trying to set a subdomain so that I can use it with git : git.domain.fr My repositories are in /home/git (example /home/git/repos.git) I've installed ...
4
votes
2answers
83 views

Extract given tarball and retar it exactly

My versioned project uses the contents of an upstream tarball. I would like to extract the contents in such a way as to be able to recreate the original tarball exactly. The reason is that I don't ...
0
votes
1answer
47 views

what starts runsv on a Debian system using init and how?

A bit of background: I installed git-daemon-run on a Debian system, and now git-daemon starts at boot automatically, even though there is no init script for it in /etc/init.d. I did some digging and ...
1
vote
0answers
19 views

Patching the kernel source through git

I'm trying to understand how the patching of the kernel source works. I found the patch that I would like to try an apply on the following page. I found no .patch files that I can use to apply the ...
0
votes
0answers
18 views

safely override oh-my-zsh configurations

I made some changes to my oh-my-zsh configurations, namely I changed an alias in /lib/aliases.zsh and commented out a function in a plugin that I overrode in a script. I'm wondering if there is a way ...
1
vote
1answer
32 views

Unable to make .zhistory a symbolic link

Every time I try to make my Zsh history file (.zhistory file) a symbolic link to a file (previously existing .zhistory file) that lives in another folder, Zsh deletes the symbolic link and makes it a ...
2
votes
2answers
35 views

High-level user on Media Temple DV managed server (Plesk)

I've recently set up a DV Managed server from Media Temple. I'm not sure if my question is specific to Media Temple, Plesk or Linux in general. I'm open to alternatives but basically what I am trying ...
1
vote
1answer
59 views

Strange symbols instead of normal icons and sidekiq issue in GitLab

After setting the relative url in gitlab: # Note that three settings need to be changed for this to work. # 1) In your application.rb file: config.relative_url_root = "/gitlab" # 2) In your ...
4
votes
1answer
206 views

adding SSL certificate for Github only (not all certificates from ca-certificates package)

I get the following error when accessing Github over HTTPS: error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none This is because I don't have any ...
2
votes
0answers
129 views

SSH login from external authentication

Here is what I try to accomplish: I have a server with a git repository. I use ISPConfig as control panel for our websites and I want to integrate the ISPConfig API for email authentication as second ...
0
votes
1answer
75 views

Codeswarm visualization: how to quickly setup OpenGL rendering mode on Linux (Archbang x86_64)?

The Codeswarm project provides a software project repositories visualization tool in Java. The software leverages the commit information from a log generated from a repository that you clone locally. ...
5
votes
3answers
430 views

Installing Git, Curl, and Expat from Source

I have a RHEL 6.4 VM provisioned by my companies internal KVM. We are having some trouble using yum (Cannot retrieve repository metadata, which Ive confirmed in this case is peculiar to my company's ...
1
vote
1answer
147 views

How can I add an x509 certificates bundle (ca-bundle.crt) to NSS database (~./pki/nssdb)

I'm currently using RedHat Enterprise 6. Git had issues cloning Github repos using HTTPS. After some investigation (e.g. enabling GIT_CURL_VERBOSE and GIT_TRACE) the problem was narrowed to a ...
0
votes
3answers
54 views

apply specific command for each git repository

I want compress all the git repositories on my computer (say in ~). I.e., for each directory {}, that contains directory or file (in case of submodules) named .git, I want to execute git gc ...
4
votes
1answer
64 views

Git hanging while cloning source

I am cloning firmware source using git clone but during the operation my Internet connection went down. I immediately restored the connection, but now the git clone process is hanging. Can I kill ...
4
votes
2answers
1k views

git push fails with remote: error: hook declined to update refs/heads/master

I'm recently trying to start my own project on a community git repo, and I've been having some complications. I'm new to git, but here's what I've been trying to do to just test it. I run the ...
0
votes
1answer
42 views

Getting branch from git

let's say I want to get this branch the same way I get the latest one, using git clone git://github.com/raspberrypi/linux.git. How do I do it?
0
votes
2answers
57 views

How to migrate SVN to git [closed]

Can someone tell me the steps on how to migrate svn to git? I have repositories in svn and I want to move all them to git without the loss of data.
0
votes
1answer
686 views

Why am I getting git error “remote: error: unable to create temporary file: No such file or directory” on push?

This problem is getting weirder. My original post follows, but here is the new thing I discovered: I executed git push and it gave me its usual error: Counting objects: 9, done. Delta ...
3
votes
2answers
34 views

Why am I getting so many hits searching for “git” in the aptitude cache?

When I give the following command: apt-cache search git | wc -l I get the answer 756. How can I list just the half-dozen or so apps associated with git?
2
votes
1answer
70 views

diff --git unknown option

when I try to run diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c I get unknown option (I have installed git via apt-get install git)
7
votes
1answer
154 views

Does git contain information about used id / group id changes?

I have googling awhile, but can not find such information. Looks like git doesn't contain users and groups, only permissions. Am I right?
3
votes
1answer
445 views

Granting access to a restricted git shell

I tried setting up git-shell on our CentOS (6.4) system (after getting this working correctly on Ubuntu 13.10, maybe cross platform hot mess?) my /etc/passwd shows git:x:500:500:Web Archive ...
0
votes
1answer
489 views

How to use rsync to backup a directory without git subdirectory

I want to copy my c directory with all subdirectories excluding ./git subdirectory. I do it using rsync : echo "copy c and sh files " rsync -a --include='*.c' --include='*.sh' --include='*/' ...
1
vote
0answers
247 views

git-upload-pack hangs indefinitely

I have the following call structure: Jenkins runs fab -Huser@host set_repository_commit_hash:123abc. set_repository_commit_hash runs git fetch with pty = False. The child process ssh git@github.com ...
0
votes
1answer
47 views

git and sshfs: status is inaccurate

I am mounting a git repository on a virtual machine over sshfs onto my host machine. So far so good. However, git claims that there are many uncommitted changes when viewing the repository over sshfs. ...
0
votes
1answer
43 views

a file to be in git or not to be?

I didn't prevent same problem: I don't use git rm projects.py and when i use : git cp projectsTABTAB projectsFindFrame.py projectsInsert.py Also when i use: git show ...
3
votes
1answer
79 views

copy a single file from local repository GIT

I need to copy a SINGLE FILE from LOCAL REPOSITORY to my machine, not git-pull or git-fetch, how can i do it? Is it possible to get it via hash ? such as a3ea2118bf1c5e2c6aa0974d0b6ff7415bd044ef ?
0
votes
1answer
42 views

`git remote add` to home dir by `~` expression

I created git bare repository in my home directory like ~/git-repos/foo.git. To add a remote repository I typed like git remote add origin ssh://username@hostname:10022~/git-repo/foo.git. But it ...
0
votes
1answer
67 views

Running git with higher memory allocation

I am facing memory/data segment issues while running git. However, if I set my ulimits to a bit higher like below. ulimit -m 262144 ulimit -d 262144 It runs fine. Don't we have anyway to allocate ...
0
votes
2answers
67 views

md5sum check fails for git-man-pages.tar.gz package

When I try to verify the integrity of git-man-pages package I downloaded from "http://code.google.com/p/git-core/downloads/detail?name=git-manpages-1.8.4.tar.gz&can=2&q=" it fails with error. ...
1
vote
2answers
68 views

couldn't update git via git clone comand

I am just a beginner in Git. Was following through the documentation and installed Git using source code package. Now, after installing Git, I want to update it (Though it might be unnecessary at this ...
0
votes
0answers
279 views

Permission Denied (PublicKey,keyboard-interactive) linux raspberry pi

I know there are a ton of questions on this. I have read almost all of them. I have also googled this problem to no avail I attempted to git clone git@git.assembla.com:myhubname.git and I get ...
0
votes
0answers
656 views

'Git clone' times out with 443 error message

git clone -v https://github.com/me/myproj Cloning into 'myproj'... <minutes pass> error: Failed connect to github.com:443; Operation now in progress while accessing ...
0
votes
1answer
381 views

Allow www-data to perform specific commands

I need a PHP script to perform git pull however I am not naive enough to give it permissions on git. I've wrapped git pull in a script which www-data has permissions for, but I'm not sure how to give ...
2
votes
0answers
54 views

Git completions for aliases only available after running `git reflog`

I have a few aliases that I want to autocomplete for git, e.g., the following alias gco="git checkout" When I was attempting to add completions for this alias, I looked around in my path and saw ...
0
votes
2answers
132 views

How to extend a command in bash so that it expands based on options?

I've started working with a git repository that includes a large amount of content that should be assumed readonly. So, every time I throw a new branch: git checkout -b newBranch it should be ...
3
votes
1answer
1k views

How to setup Git server on Linux Container in Debian

I have a LXC container on my Debian system. I want to setup a public Git server on it so that it's accessible to other people. How can I do this? UPDATE #1 Link to apache2.conf: ...
1
vote
1answer
132 views

How do I apply this revert commit patch from git?

I have found a patch applicable to my system to fix a problem but I have no idea how to get this patch and then apply it. Can anybody help me please? Patch: ...