2

I upgraded from OSX 10.9 to 10.10. When I try to

git status 

I get

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. 
  1. Why do I have to accept a new TOS to run git? Is there a workaround to accepting new Xcode TOS?

I know that I could simply open up Xcode and accept the new user agreement and carry on. I plan on using Xcode in the future and have no specific objections to using it. Wondering how a developer could, hypothetically, choose to continue running git should they disagree with Xcode's new TOS.

1
  • Does which git show you /Library/Developer/CommandLineTools/usr/bin? Commented Nov 17, 2014 at 20:44

1 Answer 1

2

If you find that which git returns /Library/Developer/CommandLineTools/usr/bin then you are dependent on xcode functionality and its associated TOS.

If you install through another mechanism, brew or via GitHub command line tools, you would not receive this prompt. You may want to make sure your other version is earlier in your path:

$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 
Sign up to request clarification or add additional context in comments.

2 Comments

For me, which git provides /usr/bin/git. What do you mean by "earlier in your path"?
Meaning that git is loaded from locations in your directory path shown by echo $PATH. You can always prepend this directory earlier with PATH=~/usr/bin:$PATH. If that works at preventing the TOS, then you can add it to your ~/.bashrc to ensure it's used after reboot.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.