MacBook-Pro:IdeaProjects $ git
xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): tried: '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib'(mach-o file, but is an incompatible architecture (have 'x86_64', need '')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib'(no such file), '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib'(mach-o file, but is an incompatible architecture (have 'x86_64', need ''))).
Book-Pro:IdeaProjects $
MacBook-Pro:IdeaProjects $ git --version
You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.
Press the 'return' key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/en.lproj/License.rtf'
deMacBook-Pro:IdeaProjects $ git --version
git version 2.37.1 (Apple Git-137.1)