git is broken: "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo"
Solution 1:
OK, I found the problem: the message was coming from the remote git server, not the client side. I ran sudo xcodebuild -license
on the server side (where the repo is located and the git server is running) and the problem went away. Sigh.
Solution 2:
I just had the same problem updating to Xcode 8. Like Tamil mentioned, all you have to do is quit Terminal, go into the App Store and into updates and click on the Xcode link. It takes you to Xcode in App Store, and then click on the "open" tab located to the left under the hammer in the Xcode Window. The License Agreement will pop up and just accept it. Then close out of the App Store and restart Terminal. Then when you go into any of your local git repos, your branch you were last on will appear again. And you are good to go!