• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: git invalid developer path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git invalid developer path


  • Subject: Re: git invalid developer path
  • From: Daniel Santos <email@hidden>
  • Date: Tue, 23 Feb 2016 00:17:26 +0000

I also have that git binary in the path setting in .bash_profile, so when I do a git —version I get the correct one.

I will try home brew to see if I can fix this.


> On 22 Feb 2016, at 17:59, Jens Alfke <email@hidden> wrote:
>
>
>> On Feb 21, 2016, at 11:31 AM, Daniel Santos <email@hidden> wrote:
>>
>> I am running the git binary from the git download site and not the git that already comes with OS X. I ran the following command to override it :
>>
>> MacBook-Pro:xekmypic dlsa$ alias git=/usr/local/git/bin/git
>
> Using a shell alias will override the command in that shell, but it doesn’t apply to nested shells. So if a shell-script invokes “git” it gets the regular git.
>
> If you put that alias command in your shell’s startup script (e.g. .bash_profile) then it takes effect for nested shells, provided they’re the same type of shell that you run. But if you use a nonstandard shell like tcsh or zsh, then the alias won’t affect standard shell scripts that use bash.
>
> The most reliable way to override commands is via the path — if you append a directory to $PATH in your shell’s startup, then all processes created from the shell will inherit that environment and find commands in that directory.
>
> (Just noticed that the path to your git is unusual — typically local commands go in /usr/local/bin. I suggest using a package manager like homebrew to install nonstandard software; it will make sure everything’s installed in the right place.)
>
> —Jens


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: git invalid developer path
      • From: Daniel Santos <email@hidden>
References: 
 >git invalid developer path (From: Daniel Santos <email@hidden>)
 >Re: git invalid developer path (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: XCode debugger does not show values for static __thread local variables in C
  • Next by Date: Re: git invalid developer path
  • Previous by thread: Re: git invalid developer path
  • Next by thread: Re: git invalid developer path
  • Index(es):
    • Date
    • Thread