Jump to content

git issues on Mac OS X after upgrade

Cowboy Denny



My MacBook Pro got updated to MacOS Monterey (12.2.1) and since then, I can't use git at all.  When I run git I get this

USDETMNBSJEMD6R:~ iSupport$ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

So in reading about others having this issue they just run 

USDETMNBSJEMD6R:~ iSupport$ xcode-select --install
xcode-select: note: install requested for command line developer tools

This popped open a window showing the install (which isn't a fast install at all)


Eventually it will give you a pop up like the one shown below that states the software is installed.


For my own sanity I just check version to see if the command git will work now and it does

USDETMNBSJEMD6R:~ iSupport$ git --version
git version 2.30.1 (Apple Git-130)


Recommended Comments

There are no comments to display.

Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...