In terminal...
% cd MY-PROJECT-PATH
% git status
I've been suddenly getting the same error in Xcode 14.3.1 (Intel, Ventura, Mac Mini):
System Integrity Protection: enabled
Crashed Thread: 14 Dispatch queue: DVTSourceControlGitXPCClient :: Proxy Completion Queue
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000700005d84fe0
Exception Codes: 0x0000000000000002, 0x0000700005d84fe0
Xcode and git repository seemed to be somehow out of sync, and I had some odd phantom files that wouldn't go away until I did:
% git add -A
(This adds all modified and untracked files in the entire repository to the git staging area. Can be slow and might commit files you don't want committed. Doesn't stage ignored files.)
Then I was able to successfully commit the source changes from within Xcode.
No crashes after 3 hours so far, unlike every 10-30 minutes previously.