% git init
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
I recently ran into the above error while trying to use git on macOS Terminal
I executed the command xcode-select --install to install the Command Line Tools but it failed as well,
Can't install the software because it is not currently available from the Software Update Server

I was able to download the latest Command Line Tools for Xcode 14 beta 5.dmg using the apple developer account: https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_for_Xcode_14_beta_5/Command_Line_Tools_for_Xcode_14_beta_5.dmg
After installing it manually the issue got fixed.
% git init
Reinitialized existing Git repository in /Users/code2care/Desktop/abc/.git/
- How to find path of file on Mac Terminal
- How to disable Siri on Mac Monterey
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- Select Line Number TextEdit on Mac
- Go to Specific file path using Mac Finder
- How to find Java HOME in Mac Terminal
- bash: command not found error [macOS Terminal Linux, Unix or Windows]
- Must Know Homebrew Commands for Mac/Linux Users
- How to Insert an Inverted Question Mark on Mac ¿
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- How to make macOS Terminal window Transparent (or Opaque)
- How to check of Updates on Microsoft Edge Browser on Mac (macOS)
- Limit scrollback rows in macOS Terminal
- How to identify installed Java (JDK) Version on macOS
- Keyboard Shortcut to delete a file on a Mac [Macbook]
- Open Docker from Terminal Command on Mac
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to take a screenshot on a Mac - updated for Ventura 13 [updated 2023]
- ls: .: Operation not permitted - Mac Terminal ZSH Error
- How to remove username from Mac Menu Bar?
- macOS Ventura XCode Command Line Tools Installation
- Where is .zshrc file located in macOS
- How to Show Path of Files or App in Mac Spotlight Search
- How to enable root user on Mac Terminal
- Install Java 17 (LTS) JDK on ARM based M1/M2 Mac Natively
- How to add to PATH in macOS Big Sur - MacOS
- macOS: Change Weather App Temperature unit from Fahrenheit to Degree - MacOS
- clear is not recognized as an internal or external command operable program or batch file. - DOS
- Fix - zsh: command not found: conda [macOS] - zsh
- Portable Notepad++ for windows - NotepadPlusPlus
- How to minimize all Windows in Mac - MacOS
- Show Chrome Developer Console Keyboard Shortcut on macOS - Chrome
- Java get day of the week as an int using DayOfWeek - Java