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
0answers
26 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
155 views
What does “--” mean in Linux/Unix command line? [closed]
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
68 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
95 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
57 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
67 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 ...
0
votes
1answer
40 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
397 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 ...
0
votes
0answers
59 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
49 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.
3
votes
1answer
35 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:
...
1
vote
1answer
63 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 ...
8
votes
4answers
249 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
93 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
102 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 ...