Git is a distributed revision control system with an emphasis on speed.

learn more… | top users | synonyms

157
votes
14answers
228k views

What are some GUI clients for Git?

I am using git for version control of various projects. Is there easy-to-use software for navigating through commits and branches of a project and for retrieving versions?
63
votes
6answers
75k views

Enter SSH passphrase once

Before upgrade When I was running git clone git@... (using ssh) once per computer restart a window dialog appeared containing a textbox for inserting my SSH passphrase and confirmed with OK. Then the ...
55
votes
3answers
18k views

Nautilus Git integration

Is there any equivalent to TortoiseSVN but for Ubuntu / Git? I'd like to integrate Git commands to Nautilus.
52
votes
8answers
116k views

Setting up a git server

I've recently set up ubuntu-server on Amazon EC2. I would like to use it as my git server, so I could store my repos there. So, where can I find some detailed instructions of how to setup git on ...
51
votes
3answers
82k views

git config global file - remove settings

The following command: $git config --global --list gives me: user.name=test user user.name=gotqn I want to remove the first name. I refers to this article and do the following commands but ...
37
votes
1answer
12k views

What are the differences between the git and git-core packages?

Why there is a git package and a git-core package? Is there any difference?
32
votes
1answer
15k views

How do I install the latest version of Git with apt?

I read about a security flaw in Git, which was fixed in version 2.2.1. I currently have Git 2.1.0 on my system (Ubuntu 14.10), and tried to reinstall it with apt. However, apt told me that I currently ...
30
votes
0answers
25k views

How to setup a Git server? [duplicate]

I am trying to setup a Git server could. Can anyone tell me how to set up a Git server, so that client machines can connect to that server and make use of Git version control for their projects... ...
29
votes
5answers
29k views

Really verbose way to test Git connection over SSH?

When using GIT, I have problems with using GIT over SSH, and since it works just fine both from work, and at home with a different modem, it's obviously my home modem that is acting up. I have no ...
29
votes
4answers
29k views

Why do I get this warning from Gnome keyring in Xubuntu?

I have installed xubuntu-desktop ontop of a stock Ubuntu installation. When using ssh, or more specifically git, I always get this warning WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-...
26
votes
1answer
49k views

“error: gnutls_handshake() failed” when connecting to https servers

When I try to connect to any HTTPS server with git, it gives the following error: error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing ... fatal: HTTP ...
21
votes
2answers
4k views

Git on Launchpad

I develop most of my code in Git repos, now that I've become slightly more active on Launchpad I've started picking up Bazaar which has two "small" difference from Git's workflow that ride against how ...
20
votes
3answers
2k views

Using Git as off-line alternative for Dropbox

I am working with lots of text files daily and I use Dropbox as a way to restore earlier versions of files in case something goes wrong. I am looking for simple way to suplement/replace Dropbox in ...
19
votes
2answers
14k views

How to use multiple ssh keys with different accounts and hosts

i have multiple ssh keys and i have also have account on bitbucket and github. how when ever i use pull it gives me error :/var/www/proj$ git pull origin master conq: repository access denied. fatal:...
18
votes
3answers
20k views

Prepend current git branch in terminal

How can I configure the terminal to display the current git branch? I'd like to see the second line rather than the first: andy@bob:~/my_projects/project_x$ (master)~/my_projects/project_x$ I don'...
17
votes
2answers
15k views

upgrade git on Ubuntu 10.04 (Lucid Lynx)

I currently have Git 1.7.1.0 installed but need to upgrade to 1.7.1.1 (at least). I tried running: sudo apt-get update sudo apt-get upgrade and also tried sudo apt-get install git-core but each ...
16
votes
1answer
437 views

How do I get “Quickly” to use Git?

How do I get Quickly to use Git as its default version control instead of Bazaar?
14
votes
2answers
549 views

How do I submit a patch to a Launchpad project?

With a Git/GitHub background and knowing very little about Bazaar VCS, I would like to occasionally report a bug to projects hosted on Launchpad, and even send a patch. I'd like to do it in a "proper"...
14
votes
4answers
3k views

How can I import bzr branches into git?

I am quite used to using git, is there an easy way to import/export from bzr into git and back bzr once I have made commits?
13
votes
2answers
7k views

Upgrade Git version on Ubuntu 14.04

Can please somebody tell me what is wrong with this? I run $ sudo apt-get purge git; sudo apt-get autoremove; sudo apt-get install git Reading package lists... Done Building dependency tree Reading ...
13
votes
6answers
4k views

How to alias 'git' to 'g' so that bash-completion rules are preserved?

If I do this: alias g='git' I loose all completion rules (i.e. branches and remotes are no longer being automatically completed when I hit TAB after typing, for example g push o).
12
votes
1answer
14k views

Intellij unable to fetch from git

I've cloned an existing git repository. Git is working fine when I pull using command line. However, when I try doing the same from Intellij, it says Fetch failed. Fatal : Could not read from remote ...
12
votes
3answers
23k views

How to start git-gui?

I've installed git-gui tool via sudo apt-get install git-gui. But how do I start it? Trying with search or git-gui command did not find and UI tool for Git.
11
votes
2answers
303 views

Difference between installing git vs installing git-all

What's the difference between sudo apt-get install git-all vs sudo apt-get install git Is there any advantage of installing either or all?
11
votes
1answer
4k views

Install a more recent version of git on a LTS

I can't upgrade my lucid lynx 10.04 LTS because newer distributions of ubuntu don't work on that computer. I need to install a git version 1.7.10 for credential management. Git version is 1.7.0.4 on ...
11
votes
2answers
12k views

Error Installing Git with Apt-Get

When I attempt to install git on a server distribution of Ubuntu 11.04, I get an error. I used the following command: sudo apt-get install git And that generated this error: (Reading database ......
11
votes
5answers
18k views

Connection timeout when accessing Github [closed]

I have exactly the same problem as described here: http://stackoverflow.com/questions/12849986/connection-timeout-when-accessing-github So I'll just copy & paste: I have some weird problems. ...
10
votes
3answers
26k views

How to clone git repository only some directories?

For example, I want to download PCL 3d_rec_framework. This is the git repository of PCL: https://github.com/PointCloudLibrary/pcl.git How to download this directory? https://github.com/...
10
votes
2answers
7k views

Setting up gitweb/apache2

I have recently began storing code, that I write on a local server I have at home. I was hoping to start a gitweb instance at home so I can see commits and track progress with my other team mates. I ...
10
votes
3answers
4k views

Issues checking out code from Google Code

I've recently upgraded to Ubuntu 11.10 and since then, I haven't been able to checkout code from Google Code. I can't get it with either svn or git, but they were both working before the upgrade (so ...
9
votes
1answer
17k views

How to access a git repository using SSH?

I have the public key. I think this is needed for the SSH connection to the server where the git repo is located. Now I don't know how to get the code. Can someone please tell me the complete ...
8
votes
1answer
1k views

HEAD is now at 9e52a21

I am trying to run a kernel module on a Nexus 7 emulator on Ubuntu. I ran this command in the terminal: git clone https://android.googlesource.com/kernel/msm.git Then I want to checkout this: git ...
8
votes
3answers
17k views

git ssh :Permission denied (publickey)

I tried to use github so I followed the help doc. But when I used this command : ssh -vT git@github.com I got error like this: jacos@Jing:~/.ssh$ ssh -vT git@github.com OpenSSH_5.8p1 Debian-7ubuntu1, ...
8
votes
1answer
784 views

After `chown -R` git is super slow

I have a massive GIT project with several GIT submodules inside. I recursively changed ownership(chown -r) from root to my user for each file in my project. Now any git command takes a lot of time to ...
8
votes
2answers
13k views

How do I prevent git from requiring sudo on every git command

I created a directory /var/www to store my web apps clone in. When I initially cloned the app from github it required me to use sudo and every time I do a git pull it's requiring sudo. I'm running ...
8
votes
4answers
5k views

How can I have a shell for git like in Windows?

When I use Windows, the shell (even a standard Windows shell) shows basic information about the git repository when you are in a git repository. Things like the active branch and maybe some color ...
8
votes
1answer
4k views

Hourly GIT Push

Is it possible for me to automate a Git push every hour via a batch script. I would typically type in this: git add * git commit -m "latest update" git push https://username:password@github.com/...
8
votes
2answers
7k views

Problems with Git-All and 15.04

So I'm working with git and I installed the standard version. I set up the ssh keys and was able to clone one of my repositories to the correct folder. Everything was working great and then I decided ...
8
votes
1answer
2k views

Does it make sense to store a git repo on Ubuntu One?

I'm working on a small project, mostly at home, but I'd like to be able to access my git repo from multiple machines, all of which are connected to Ubuntu One. Do you think I can safely store my ...
7
votes
6answers
3k views

How do I disable gnome-keyring ssh integration?

I don't want gnome-keyring to get in the way of my git commits, partially because it locks the entire screen while asking for a password, even on KDE (though I have now switched to GNOME). While I do ...
7
votes
3answers
11k views

How to remove offending key in git when you try to push your chanes?

I've done tons of search and tested different solutions, but gain no success! When I want to push my codes, I receive the following error: Warning: the ECDSA host key for 'git.mywebsite.ir' ...
7
votes
2answers
3k views

How do I integrate git with emacs?

What do I need to install to be able to do something like the lines below in Ubuntu 11.04? M-x git-status git-commit-file command (c key) git pull git push
7
votes
4answers
45k views

Trouble setting up git error: could not lock config file

I'm getting this error when trying to set the global config: $ git config --global user.name "Your Name Here" error: could not lock config file /pathto/file/.gitconfig: No such file or directory ...
7
votes
2answers
12k views

Ubuntu 12.04 Gitosis no longer available

I have an Ubuntu 11.10 box running git server using gitosis, installed as described here https://help.ubuntu.com/community/Git I just tried upgrading to 12.04 doing a do-release-upgrade, and the ...
7
votes
2answers
1k views

Is there an application to manage config files in the /etc folder with version control software?

I want make version control for config files in Ubuntu server. But I found out it's not easy for simply "git" whole etc folder, because so many file doesn't need to track and some time system will ...
7
votes
1answer
433 views

Where to obtain Ubuntu Supplied Third-Party Device Drivers Patches to apply them to vanilla kernels?

For testing purposes I usually download the ubuntu kernel available from git and build it for my PC. But usually the stable version of Ubuntu kernel is not always in sync with the latest stable ...
7
votes
1answer
992 views

How can I conditionally change the nautilus background color?

I would like to have the nautilus background color different if the current folder is being managed by git (i.e., if there is a .git directory in it). Any ideas how to do that? Ideal solution would ...
6
votes
1answer
2k views

Upgrading to the last version of Git from the source repository or PPA

I want to upgrade git using the source repository within Ubuntu. As you note, the last stable version is 2.0.2, but I have 1.9.4. I cloned the git repository, but I'm not sure how to continue. I ...
6
votes
2answers
26k views

tortoisegit for ubuntu

Are there any alternatives to ToroiseGIT for Ubuntu? I'm looking for something to integrate GIT with nautilus in the context menu. Like TortoiseHG used to (replaced with HG scripts)
6
votes
2answers
6k views

Change git's language to English without changing the locale

My locale is German. LANG=de_DE.UTF-8. I would like to keep it. Is it possible to change git's language to English without changing the locale?