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