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

12
votes
0answers
1k views

git completion with zsh: filenames with spaces aren't being escaped properly

Git completion: I'm having difficulty with git's filename autocompletions on my system. I'm using zsh (5.0.5) with git (1.9.3) on OS X (10.9.3). Both zsh and git have been installed via homebrew. ...
7
votes
0answers
3k 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 ...
4
votes
0answers
203 views

Restricting access to just CVS and Git commands

At work we have a server which hosts our CVS repository and in order to restrict shell access to this system, I have deployed rssh which has worked well for a number of years. We are now converting ...
3
votes
0answers
27 views

Git with multiple users on other systems using setfacl?

I'm setting up a git environment where multiple developers will work with per project. We have 1 server running git, and 2 seperate servers, 1 live and 1 dev. on dev I created a group and added the ...
3
votes
0answers
91 views

File permissions when removing user from git

I have a shared git repository set up, which users pull from with the ssh protocol. I would like to set up the permissions in a way that only users in a specific user group (e.g. git_group) may ...
3
votes
0answers
230 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 ...
3
votes
0answers
5k views

Git hangs indefinitely when trying to push --all to GitHub

When I try and push --all to GitHub, the Git transfer starts out fast, slows down, and eventually stops. It doesn't fail, it just slows to a halt. What's going on? This is really frustrating, I'd ...
2
votes
0answers
25 views

How to turn a git repo into a ppa

Suppose I have a git repo, the instructions for building are: sudo apt-get -y install build-essential git mesa-common-dev libglu1-mesa-dev libsdl2-dev libsamplerate0-dev cd ~ wget ...
2
votes
0answers
50 views

git push/pull with ssh key

I have a 'git --bare' repo on a linux machine. I wish to allow another user from a different machine to push/pull to it. I have their ssh key. Is there some way I can allow them to execute the ...
2
votes
0answers
210 views

Fetch patches from mailing list with mutt and vim

How can I fetch patches from a subscribed development mailinglist with mutt and vim so that they can be applied with "git am" or "git apply" command easily? Is it either possible to save it ...
2
votes
0answers
350 views

Making zsh filename completion case-insensitive everywhere

I have the following line in my zshrc to make filename completions case-insensitive: zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' This works most of the time but I’ve noticed that if I ...
2
votes
0answers
192 views

Restrict SSH access to git usage only

Using: ssh-keygen -O force-command="/bin/restricted-command", or command="/bin/restricted-command" at the beginning of an authorized_keys line one can force a key-based SSH connection to execute ...
2
votes
0answers
33 views

git report moved lines

I want to track the number of additions and deletions that exclude moved lines. So if a commit has 10 additions, 5 deletions, and 3 moved lines, then I have 7 additions, 2 deletions excluding moved ...
2
votes
0answers
312 views

Fixing git object headers

I have a git repository that is not corrupt (all object files remains, i can commit to it and so on). Recently I noticed that some older commits are broken, "error in commit": git fsck --full ...
2
votes
0answers
105 views

Git and Puppet Master Lifecycle

I'm looking to setup a Puppet Master which hosts its configuration in a Git repository. I assume that I'd host my Puppet Configuration in a Git repository centrally organized on a Git hosting ...
2
votes
0answers
19 views

Synchronize KDE4 Hotkeys

how can I synchronize my personally defined KDE4 Hotkeys between different computers? I would like to check in a file in git, as I do it with .bashrc and other configuration files. I found ...
2
votes
0answers
201 views

Fetching all Git repositories in the background

I'm thinking about setting up a cronjob for fetching all my repositories every once in a while, to have the current status ready in case I'm offline. Something like the following (wrapped for better ...
2
votes
0answers
315 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 ...
1
vote
0answers
47 views

git-filter-branch leaving untracked files

I am trying to use git filter-branch to refactor a repository. I am trying to extract one directory from it. Since I am not familiar with the command, I have been experimenting with a copy of the ...
1
vote
0answers
133 views

Build CentOS RPM for current git release, unsuccessful rebuild with alternate prefix

I am stuck in an effort to provide an maintain an up-to-date git release for a collection of CentOS Linux servers. I was hoping to be able to create binary RPMs that I could just have published to a ...
1
vote
0answers
66 views

customized pager for Git

I wrote a script to display git diff. It will display the difference in stdout if the output fits in the terminal screen, or display the difference in pager otherwise. My script: #!/bin/sh if ! ...
1
vote
0answers
13 views

Using gitk to view changesets in a linux server using etckeeper?

gitk is a pretty good tool for viewing changesets in a git repository. Is there any way to use it locally on my workstation to view/review an etckeeper git repository on a remote server? Also ...
1
vote
0answers
90 views

Bash - Parameters Reference passing (sort of)

So, I've figured out thus far how to utilize the "local -n " command, which effectively allows me to "reference pass" a variable from one function to another. this is rather helpful when parsing out ...
1
vote
0answers
20 views

How to make patch not so strict?

To give you the background, I'm trying to "port" "commit only parts of hunks" workflow from git to svn. In git there is interactive staging, and you can even edit hunks to be committed (chose which ...
1
vote
0answers
75 views

No permission to git clone?

What is possible problem, if I have SSH key, and trying to git clone one folder from git lab, but I still dont have permission for it ?
1
vote
0answers
63 views

mount a NAS network share, but let the NAS sleep

I have a NAS (WD MyCloud) which has by default NFS/SMB access enabled. I also have a raspberry pi, that I would like to use as a git server that is addressable over internet using a SSH connection. ...
1
vote
0answers
311 views

Run git pull from a shell start-up script

I have Raspberry Pi that loads a shell script on start up. This script runs a python script, boot_camera.py, which is found in a repository. I Have a server which sends the Raspberry Pi a command ...
1
vote
0answers
97 views

delete .gitignored files with rsync

I often need to use rsync to synchronize a local with a possible remote directory, while ignoring exactly all the files git would ignore because of its .gitignore configuration. To do so, I am ...
1
vote
0answers
58 views

Dealing with git permission errors on root mounted partition

I am trying to clone a git repository from my home directory to a cifs partition, but I keep getting this file permission error. [cguest@devserver groupmount]$ pwd /mnt/groupmount [cguest@devserver ...
1
vote
0answers
81 views

Problem with Bitnami Gitlab

I have installed Bitnami Gitlab on a centos 6.5, but I just see the error written below while trying to push to another project: ~/sample$ git push -u origin master git@-'s password: fatal: ...
1
vote
0answers
857 views

GIT on 'mountain lion' will not execute commands

Macbookpro Mountion Lion 10.8.5 I am not new to technology or programming but relatively new to Web Development. My Unix is rusty. Issue. I cannot get GIT to execute commands. I have been ...
1
vote
0answers
288 views

ssh-agent on CentOS 6.5 keeps “disabling” itself

I recently installed git on my CentOS 6.5 system. During the process I setup a key/pair for GitHub so I don't have to enter a password for every git process. I did this by adding the rsa file to ...
1
vote
0answers
298 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
0answers
47 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 ...
1
vote
0answers
4k 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 ...
1
vote
0answers
845 views

git deploy using sudo nopasswd

I'm trying to write simple post-recieve script, which would switch to webserver user and pull git repository. To do so, I added git user to sudoers (I've added this to very last line): git ALL = ...
1
vote
0answers
102 views

How to install master branch of freeradius on Centos

Could someone take me through the steps to install the master branch of freeradius on a fresh Centos 6 installation?
0
votes
0answers
20 views

git does not work for some repo but work for others

I encountered a very weird issue for git. I have three repo.s in github, say repo1, repo2 and repo3. On machine 1, I used to be able to clone and pull all three repos. However, suddenly I couldn't ...
0
votes
0answers
20 views

Why I can't open the kernel git repo in my GIT GUI client?

I successfully cloned the kernel using git in command line, nevertheless I find difficult to navigate throughout the repo using the cli and I got a gui client, gitkraken to be specific. The thing ...
0
votes
0answers
13 views

ssh/git does not use GUI to ask for password after upgrade to to Ubuntu 16.04

I used to run Ubuntu 14.04 on my computer. Whenever I used ssh keys to log in to various servers, I used to get a GUI pop-up dialog asking me for the password for my key. After entering the password ...
0
votes
0answers
149 views

Where in CentOS 7 should I install Ruby?

I am installing Ruby and rbenv on a CentOS 7 by following the instructions in this tutorial, with modifications. One of the recommended lines of code is cd followed by git clone commands. I assume ...
0
votes
0answers
50 views

Git “unknown revision” error when within bash script

I'm writing a shell script that needs to perform certain operations based on the last commit's message of my local branches with a name starting with "task". Here's what my script looks like ...
0
votes
0answers
51 views

DNS problem with ipv6 on centos6

I have a couple of open-stack instances that communicates with github.com. When any of these machines reboots , the file /etc/resolv.conf gets the ipv6 addresses of my DNS servers. Everything still ...
0
votes
0answers
22 views

Git-cherry not ignoring whitespace as advertised

Given the following two versions of the foobar.txt file (excluding comments) ... ... on the upstream branch (version 1, commit 1): foo bar ... on the downstream branch (version 2, commit 2): # ...
0
votes
0answers
59 views

gitg - no blame mode in 3.14

Since the new version of gitg has changed dramatically, I cannot seem to find some things I use to use such as blame mode. Did it disappear in 3.14.1-r1 or newer?
0
votes
0answers
159 views

git refuses to connect without proxy

I work on a Linux system in a Windows environment. To authenticate with a NT proxy server I had setup cntlm and configured system programs to use it via setting http_proxy environment variable in the ...
0
votes
0answers
151 views

git add . error on dedicated server; fatal: Not a git repository

I was able to initialize a git repo on a directory containing one of our websites, but when I try to git add . I get this error: fatal: Not a git repository: ...
0
votes
0answers
618 views

Fedora 20: Can't install git

[root@8440p Downloads]# yum clean all Loaded plugins: langpacks Cleaning repos: rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree : rpmfusion-nonfree-updates updates Cleaning up ...
0
votes
0answers
118 views

Problem with OpenSSH

I think I got an OpenSSH-problem with my Ubuntu Server 14.04.1. Let me explain my setup: For development, I use Git and Gitolite. I have 3 server: server A ( master-server for git-mirroring) ...
0
votes
0answers
829 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 ...