Re: git invalid developer path
Re: git invalid developer path
- Subject: Re: git invalid developer path
- From: Jens Alfke <email@hidden>
- Date: Mon, 22 Feb 2016 09:59:24 -0800
> 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