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

13
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. (...
8
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
35 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 ...
4
votes
0answers
207 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
92 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
325 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 ...
3
votes
0answers
234 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
27 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 http://download.qt....
2
votes
0answers
60 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
222 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
359 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
203 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
111 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 .kde/share/...
2
votes
0answers
214 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
322 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
8 views

How did I get the git commits to show up in autocomplete?

Git tab completion on my mac: Git tab completion on my Ubuntu server: On my mac and my Ubuntu server I get very different output from tab completion despite having the same version of zsh, same ...
1
vote
0answers
49 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
146 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
69 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
96 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
21 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
77 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
64 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
322 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
103 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
64 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
82 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
865 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
291 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 ssh-...
1
vote
0answers
301 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 https://github.com/...
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 https://github.com/me/myproj....
1
vote
0answers
853 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 = (www:...
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
3 views

what's the equivalent of this command but in a Red Hat distribution?

I'm following a Godaddy help tutorial in order to install Let's Encrypt certificate for my website, https://fr.godaddy.com/help/install-a-lets-encrypt-ssl-apache-20245. So I connected to my server ...
0
votes
0answers
11 views

Attempt to push to remote repo failed, Hooks at play

Our GIT server was moved to another location, and since then every push for any repository is getting rejected. To get around I could disable the reject-merge-commit-hook, but that is not good. I ...
0
votes
0answers
7 views

Git + Nginx - Is it safe to have https auth for cloning and pushing to repo, while remove any auth from gitweb block?

I have following nginx configuration on Ubuntu 14.04 to use together with git httpd backend and gitweb to anonymous browse of repo and push/clone with authentication. Is it safe to use such or I ...
0
votes
0answers
21 views

Get rid of ksshaskpass in KDE Plasma (Fedora 23)

I'm using Fedora 23 with KDE 5 Plasma. I'm new with KDE, and I'm still setting up the environment so it can fit me. I recently used a git command, which asked for my github credentials - but instead ...
0
votes
0answers
24 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
57 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
189 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
56 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
55 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
27 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
63 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
155 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: /space/apache/vhosts/prestastore.com/...