I'm a beginner in programming.
After installing git on the mac, you will be asked to enter the password as follows.
I don't remember setting it up, so I can't move on from here.
I would appreciate it if you could tell me the solution.
$git --version
Agreeing to the Xcode / iOS license requirements admin privileges, please run "sudo xcodebuild-license" and then retry this command.
$ sudo xcodebuild license
Password:
You must enter your login password to your Mac.
Some directories require privileges to write to a Mac, and the sudo
command requires your own password (which you enter on the Mac login screen) to "access it as a privileged user."
Please enter your Mac login password.If you have not set a password for your account, set the password from your system preferences.
Perhaps you have installed the XCode Command Line Tool version of git, so you are being asked to agree to the XCode Terms of Use.
For this reason, you are told to execute the command sudoxcodebuild-license
(requires a hyphen), but sudo
at the beginning of this command is "Run the following command with root privileges."
When using sudo
, you must enter the password for the Mac administrator account.It is not a git-specific password.As far as the output is concerned, it looks like you just need to enter your Mac account password.
© 2024 OneMinuteCode. All rights reserved.