I am using Mac OS X 10.9.5 with git version 2.1.2. Entering git push I receive: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I have run sudo xcodebuild -license and entered 'agree', but the problem remains. Opening Xcode there is no licence agreement appearing.