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<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+unsubscribe@**googlegroups.com<git-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<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.


Reply via email to