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

4
votes
1answer
574 views

SSH: “Permission denied” after changing user shell

I have an SSH server running on my Raspberry PI with ALARM (up to date). My user "gitroot" is meant to use the git-shell. However, when i set /usr/bin/git-shell as shell for gitroot in /etc/passwd, i ...
2
votes
2answers
371 views

Use git submodule foreach with function

My indention is to have a script that updates all git submodules according to which branch is given. If there's no such branch for a submodule, master is used. This is what I have now: #!/bin/bash ...
1
vote
1answer
135 views

etckeeper for opensuse - bash script install and configure

I want to automate the installation of etckeeper on OpenSuse 12.3. My first issue is that etckeeper doesn't seem to be available in the standard OpenSuse repos. zypper search etckeeper Loading ...
0
votes
1answer
96 views

Amazon EC2: Giving Permanent Permission To A Sepecific Directory In Amazon Linux AMI

I have a Symfony2 project that needs full read write permissions to three directories: app/cache, app/logs, and few other directories which are used for uploading. The problem is everytime I push an ...
2
votes
1answer
124 views

Getting diff (or git diff) to show inserted hunks properly

Let's say I have two files. The first one has the contents: line 1 foo line 2 line 1 bar line 2 And the second one has a new section inserted in the middle, so it looks like this: line 1 foo ...
2
votes
2answers
2k views

Installing Git Unit

I am trying to install git using my yum command Following is the error log Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. ...
2
votes
3answers
251 views

'setfacl' permissions don't apply to directories created by git clone?

Here's how I am setting permissions for my website's root directory i.e. ~/public_html, where the files that my website serves are placed: sudo chgrp -R www-data ~/public_html chmod g+s ~/public_html ...
0
votes
2answers
809 views

Git pull error libcurl.so.3 not found

I have a php script to git pull from my github repository set up in my webservice hook urls like so: <?php echo shell_exec('~/git/usr/bin/git pull 2>&1'); ?> When I open this script ...
1
vote
3answers
101 views

How to use git for this particular purpose?

Here is the situation. There are two machines, laptop A and workstation B. B has a fixed IP, A has a dynamic IP, and I want to avoid the need of connecting from B to A (setting up an ssh tunnel for ...
4
votes
2answers
146 views

Is it possible to restrict certain commands from being run in a directory?

I have two directories: src and projects. I would like to prevent myself from running git ... unless I am specifically inside src or projects. Is this possible?
4
votes
2answers
160 views

Git commit from within a Makefile

I have a Makefile for a Latex project I'm working on. Makefiles aren't my forte, but is there a way to do something like: make git "My comment" And have the makefile execute: git commit -m "My ...
-2
votes
2answers
342 views

Push local git repo to server via ssh

So I have a local repo and a server with git installed and a git user. I want to send (push) the repo to the server. When I simply login to the server via ssh I have to specify my .pem file and a ...
5
votes
2answers
188 views

Bash commands with spaces in them (git config or git-config?)

Please forgive me if this seems easy, but I only started learning Unix 2 days ago. Basically, I have been taught that when typing a command into the terminal it needs to be of the form: [command ...
1
vote
1answer
35 views

Remove branch from all submodules

I have a project with a lot of submodules and I want to delete all remote branches named foo in the submodules, if it exists. I am trying to following: git submodule foreach git push origin :foo ...
2
votes
2answers
159 views

Stop Git submodule foreach from opening less for each module

I occasionally need to grep through git submodules for which I use: git submodule foreach 'git grep x' However, since switching to zsh I find a less prompt is opened for each submodule, even when ...
2
votes
1answer
806 views

Getting no tty present and no askpass program specified when using git over ssh

I'm trying to push a git commit from my laptop to my server but keep getting the following error message: remote: sudo: no tty present and no askpass program specified To ...
0
votes
1answer
603 views

Git GUI integration in caja, Linux Mint default filemanager

What is the way to integrate git GUI in caja, default Linux Mint file manager ? Something what makes the interface equivalent to TortoiseGit. Didn't found any specific extension in repositories.
1
vote
2answers
185 views

Browsing bup backup with gitk or gitg

I am just playing around with bup for my backups and tested it like this: BUP_DIR=/mnt/TestTarget/bup bup init Which gave me the message: Initialized empty Git repository in /mnt/TestTarget/bup/ ...
5
votes
3answers
642 views

git command not found

I had to install git from source on RHEL. After installation the git command is shown to be in /usr/local/bin/git when trying the whereis command.This path is available in $PATH also. When I type ...
5
votes
1answer
695 views

How to recover broken/partially deleted git repository

I accidently ran an rm -r on my .git directory. Luckly rm stopped when it got to a write-protected file, but I've still lost several things in my .git. Files I still have: FETCH_HEAD ORIG_HEAD ...
0
votes
1answer
702 views

how to install .git file?

I know this has been covered everywhere, but I still don't get it. I apt-get install git-core. I'm trying to install websocketcpp here https://github.com/zaphoyd/websocketpp. I wget ...
6
votes
2answers
5k views

git pull from remote but no such ref was fetched?

I have a git mirror on my disk and when I want to update my repo with git pull it gives me error message: Your configuration specifies to merge with the ref '3.5/master' from the remote, but no such ...
1
vote
1answer
283 views

Git Alias 'Permission Denied'

I'm getting a 'permission denied' error on a git alias. It works with root but not my user account: $ andy@ubuntu:/usr/local/bin$ sudo git config --global alias.lg "log --color --graph ...
1
vote
1answer
132 views

Git changelog grouped by day and user

Current code to generate change logs: svn2cl --linelen 78 --reparagraph --include-rev --group-by-day The closest I could get with vanilla options is git shortlog --format='* [%h] %s' -w78,8,10 ...
8
votes
1answer
1k views

git diff displays colors incorrectly

In order to get coloured output from all git commands, I set the following: git config --global color.ui true However, this produces an output like this for git diff, git log whereas commands ...
0
votes
1answer
151 views

How to avoid 404 error with git instaweb?

I have tried running git instaweb start in two different repositories. In one it works fine, and indexes all the repositories in my home directory (even though run in a subdirectory). When run in ...
-1
votes
2answers
56 views

Trying to improve a sync to a shared drive

Easy question right? Just bare with me here.. I usually use Git to work with files on my local machine. I like this method because I can later check the files out on the shared drive for other ...
-2
votes
1answer
917 views

Unable to clone git repository: foo.git/info/refs not found

I tried to clone a git repository using the command: git clone http://git.denx.de/cgi­bin/gitweb.cgi?p=u­boot.git;a=summary but I got the error: fatal: ...
1
vote
0answers
305 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 = ...
5
votes
1answer
326 views

Excluding files in etckeeper with .gitignore doesen't work

I use etckeeper for changes in my configfiles (on debian squeeze) Since I also have an ircdeamon running, there are some files, that change every minute in the folder /etc/hybserv/ I don't want to ...
2
votes
1answer
134 views

How can I copy a git repo from a Makefile?

I'm writing a Makefile to sync my local dotfiles with GitHub. I recently decided to also add my .vim folder to the repo. But when trying to copy the .vim folder I keep getting a Permission denied ...
1
vote
1answer
145 views

Crontab with Github

I want to be able to push a repository to Github at midnight, every night. I know that Github isn't a back-up service, and, in no way am I expecting it to be this - I just want the best up-to-date ...
3
votes
2answers
195 views

create pseudo shell for a command

I feel like this should be straighforward to some degree... Basically, for some command, I want to be able to invoke another command that will scope all params to that command. so... git commit -am ...
3
votes
3answers
167 views

Mail cron output only when Git throws a real error

There exists a Git repo that is on one server, we want to generate doxygen output for it on a different server. The following command works for me but has the downside of sending a mail everytime the ...
6
votes
1answer
113 views

How to show all files git knows about?

How can I produce a list of filenames (incl. paths) that git knows about over the course of the whole history?
-1
votes
1answer
47 views

I have installed linux on my system and I wanted to install git. Can anyone help me? [closed]

How to install git in linux and how to work with git?
1
vote
0answers
83 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
1answer
529 views

make install - how to use wget, not curl

I do not have root access on my Ubuntu but want to install git. I was following this tutorial but when running make or make install it says curl is not installed. Can I use wget instead if this is a ...
3
votes
2answers
696 views

Does git pull after init remove untracked files?

I just made a simple script and created a new repository for it on GitHub. After initializing the local repo, moving the script to the repository and pulling the GitHub repository (containing only a ...
3
votes
1answer
206 views

How can I download all the software ( funtoo git repository) for offline use of funtoo, similiar to apt-mirror

I am working on a ship so once at sea I have no internet. The idea is to clone the complete git repository so that I can still install software when offine. I am using apt-mirror with debian which ...
12
votes
4answers
5k views

How can I solve this ssh-agent problem?

I'm using Linux Mint, and have not been able to get gnome-keyring to unlock automatically at login, it seems. A symptom of my problem is as follows: $ ssh-add Identity added: /home/me/.ssh/id_rsa ...
6
votes
2answers
1k views

What does “--” mean in Linux/Unix command line? [duplicate]

Possible Duplicate: What does “--” (double-dash) mean? git diff [options] [<commit>] [--] [<path>…] In here, how should I understand what [--] means? And when should I use it.
5
votes
1answer
197 views

Custom bash autocomplete for git breaks other git autocomplete features

I am trying to add autocompletion to git commit upon hitting TabTab. The autocomplete feature I am working on is based on a branch-naming convention. The convention is to append the PivotalTracker ...
3
votes
3answers
9k views

How to grant read/write to specific user in any existent or future subdirectory of a given directory?

I'm a complete newbie in system administration and I'm doing this as a hobby. I host my own git repository on a VPS. Let's say my user is john. I'm using the ssh protocol to access my git ...
3
votes
1answer
202 views

Bash script with quotes and spaces

I'm trying to get some nice output out of git: FORMAT='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' LOG_PARAMS="--color --pretty=format:$FORMAT --abbrev-commit ...
1
vote
2answers
878 views

git commit error - cannot run vim: No such file or directory

$ git commit error: cannot run vim: No such file or directory error: There was a problem with the editor 'vim'. Please supply the message using either -m or -F option. How can I overcome the error ...
-1
votes
1answer
100 views

my git is messed up for all commands, how can I fix it?

I did this (was trying to set an 'self' alias with -v): git() { if [[ $1 == "commit" ]]; then command git commit -v; else command git "$@"; fi; } git() { if [[ $1 == "commit" ]]; then command git ...
15
votes
4answers
3k views

How can I create an alias for a command that includes a space?

Most of my my aliases are of this form: alias p='pwd' I want to alias git commit so that it does git commit -v But trying to create an alias with a space gives an error: $ alias 'git commit'='git ...
14
votes
2answers
16k views

Similar software to SourceTree

Is there a similar piece of software to SourceTree, a GUI for git, for Linux? I know about Giggle, git cola, etc. I'm looking for a beautiful, easy to use GUI for git.
4
votes
1answer
73 views

How do I find a tag that contains a commit?

I have the SHA ID of a commit that I am interested in and would like to know how to find the first tag that contains it.