Re: git version not changed after installing new version
- From
Carlos Martín Nieto <cmn@elego.de>
- Date
- Jan 25, 2012, 19:58 UTC
- Message-ID
- <1327521489.31804.85.camel@centaur.lab.cmartin.tk>
- In-Reply-To
- <loom.20120125T202642-92@post.gmane.org>
Please don't cull the CC list. It's customary in the git ML to send a copy of the message to each participant.
On Wed, 2012-01-25 at 19:32 +0000, freefly wrote:
Show 16 quoted lines
> > > What do `which git` and `type git` say? Bash remembers where it ran a > > command so if you install a binary to a new location, it might not find > > it straight away. > > which git => /usr/bin/git > > type git => git is hashed (/usr/bin/git) > > > So the script detected that no change was needed presumably. What's your > > $PATH and is /usr/local/bin/ before /usr/bin/? > > echo $PATH => /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin: > /usr/X11/bin:/usr/local/git/bin:/opt/local/bin > > from the above output it is not before /usr/bin :(
There you go then. That should get set in ~/.bashrc so edit that file to change the order.
cmn