I get the same error with git installed through home brew


> On 23 Feb 2016, at 00:17, Daniel Santos <daniel.d...@gmail.com> wrote:
> 
> 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 <j...@mooseyard.com> wrote:
>> 
>> 
>>> On Feb 21, 2016, at 11:31 AM, Daniel Santos <daniel.d...@gmail.com> 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      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to