For macOS users, my issue was that the macOS Privacy settings had Cursor/Code turned off for access to Files and Folders in Settings > Privacy. Once I enabled it (gave Cursor access to it), the "git missing" problem was resolved.