Still happening with Ventura 13.1 Run
xcode-select --install
Agreed to the terms and services, dowloaded, installed, and that was it.
By the way, in my case I was trying to run git
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: