Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
-2
votes
2answers
25 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 ...
4
votes
2answers
70 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
17 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
39 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
104 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
96 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
63 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
114 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
94 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
144 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 ...
2
votes
1answer
584 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
64 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
47 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
...
2
votes
1answer
90 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
45 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
49 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
172 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/cgibin/gitweb.cgi?p=uboot.git;a=summary
but I got the error:
fatal: ...
1
vote
0answers
98 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 = ...
3
votes
1answer
72 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
75 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
80 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
123 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
95 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 ...
5
votes
1answer
96 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
46 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
59 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
166 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 ...
2
votes
2answers
175 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 ...
2
votes
1answer
137 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 ...
10
votes
4answers
2k 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 ...
5
votes
2answers
529 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
141 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 ...
1
vote
3answers
3k 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
130 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 ...
0
votes
2answers
365 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
79 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 ...
12
votes
4answers
757 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 ...
3
votes
1answer
2k 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
63 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.
4
votes
1answer
102 views
How does this git alias work?
Usually, git aliases are confined to a single command:
git config --global alias.ci commit
So, instead of git commit you could do git ci
But it seems you can insert a function in there as well:
...
2
votes
1answer
257 views
watch command not showing colors for 'git status'
I'm trying to get watch to display colors from 'git status'.
I've tried running watch with the --color option, as suggested elsewhere here, but, still, watch --color 'git status' doesn't display ...
11
votes
4answers
717 views
Are there pitfalls to putting $HOME in git instead of symlinking dotfiles?
I have for many years had my entire $HOME directory checked into subversion. This has included all my dotfiles and application profiles, many scripts, tools and hacks, my preferred basic home ...
3
votes
2answers
148 views
place the aliased version of an existing command in /usr/bin/
I use Vim a lot, and I know how I can start vim in insert mode. So I have an alias named vii in my .bash_aliases file.
On other hand I use Git a lot too, and I have this line in my .gitconfig:
...
2
votes
1answer
274 views
Git auto-complete
I am using Git as many of you do. Also, I don't use any GUI for that — just CLI. So I was wondering: are there any way to make Git commands (git status, git checkout etc.) complete themselves when ...
7
votes
3answers
360 views
Given a git patch id, how to find out which kernel release contains it?
Assume I have some issue that was fixed by a recent patch to the official Linux git repository. I have a work around, but I’d like to undo it when a release happens that contains my the fix. I know ...
4
votes
1answer
79 views
Invoke git without loading user gitconfig
A git-interfaced tool written in Python breaks because of some settings in my local ~/.gitconfig, namely diff.noprefix=True.
I know that I can use something like git -c diff.noprefix=False diff in ...
7
votes
2answers
145 views
Git do not overwrite symlinked directory on branch checkout
How can I make directory read-only with git?
The situation is - in project, I have a symlink to shared framework. I don't want it to be overwritten/changed in any way (not even mtime or atime).
How ...
18
votes
3answers
3k views
How to colorize output of git?
Is there a way to color output for git (or any command)?
Consider:
baller@Laptop:~/rails/spunky-monkey$ git status
# On branch new-message-types
# Changes not staged for commit:
# (use "git add ...
0
votes
1answer
173 views
Giving input to background processes
Is there any way to give input to background processes or which run as daemon processes?
I was coding some Puppet configuration files and I had to push them to some remote machine. For that purpose I ...
9
votes
2answers
367 views
Can git configuration be set across multiple repositories?
Git seems to support configuration values at three levels:
Per-system global settings (stored in /etc/git-core)
Per-user global settings (stored in ~/.gitconfig)
Per-repository local settings ...

