That was a useful start, I also realised I hadn't made sure I'd checked out the right working tree (my repo has both the Msysgit version and Junio's versio). The /usr/local/bin directory was empty, but at least I've now got a clue as to where to start looking, and I've now checked may path is set up ;-) . ----- Original Message ----- From: John McKown To: git-users@googlegroups.com Sent: Sunday, February 03, 2013 5:56 PM Subject: Re: [git-users] Compiling Git on Linux..
Ubuntu installed git into /usr/bin. You installed it into /usr/local/bin. Normally, /usr/bin is before /usr/local/bin on the PATH. You can address this by putting /usr/local/bin on the PATH before /usr/bin. Or you, if you want to replace git, use the normal Ubuntu method to uninstall git. This will remove it from /usr/bin, allowing the system to find your version in /usr/local/bin. Lastly, you can invoke your version by entering: /usr/local/bin/git On Feb 3, 2013 11:34 AM, "Philip Oakley" <philipoak...@iee.org> wrote: I have recently got a spare laptop and installed Linux (I've been on Windows since 3.1, and stuff before that) , and I'm trying to get my head around some of the Git install issues on Linux. In particular how to compile my own version of Git, separate from the installed version. I've got Ubuntu Description: Ubuntu 12.04.2 LTS Release: 12.04 Codename: precise I used https://www.digitalocean.com/community/articles/how-to-install-git-on ubuntu-12-04 to confirm I had the latest update and dependencies, and then 'cd repos/git' where I had cloned the git source (my own repo), rather than getting the tar. I then compiled with 'make prefix=/usr/local all' and got what I think was a successful compile. However 'which -a git' gave only one result, /usr/bin/git. 'git --version' gave 'git version 1.7.9.5' which I believe was the original ubuntu apt-get version. Where should the compiled version be?, and will it have overwritten my previous 'apt-get git', or have I missed out an 'install' step. Philip -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2897 / Virus Database: 2639/6076 - Release Date: 02/02/13 -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.