When creating a new repository on the command line, enter the command in the terminal
Always prompts
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
Prompt to install xcode
Xcode has built-in environments for certain development needs. Even if you don’t use them, it is recommended to install them.
You should not be prompted to install Xcode, but should be prompted to install Command Line Tools. You can just install one separately