git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: freeflyNext: freefly
Message 7 of 14 in “git version not changed after installing new version”
  1. freeflyJan 25, 2012
  2. Kirill LikhodedovJan 25, 2012
  3. Thomas RastJan 25, 2012
  4. freeflyJan 25, 2012
  5. Carlos Martín NietoJan 25, 2012
  6. freeflyJan 25, 2012
  7. Carlos Martín NietoJan 25, 2012
  8. freeflyJan 25, 2012
  9. Carlos Martín NietoJan 25, 2012
  10. freeflyJan 26, 2012
  11. freeflyJan 26, 2012
  12. Holger HellmuthJan 26, 2012
  13. freeflyJan 26, 2012
  14. freeflyJan 25, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.