Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlanJui/9fb43f7b3c2303422fbd2ceb39bbd7c0 to your computer and use it in GitHub Desktop.
Save AlanJui/9fb43f7b3c2303422fbd2ceb39bbd7c0 to your computer and use it in GitHub Desktop.

剛完成 macOS升級,git 卻掛了!!

剛完成 macOS 作業系統的昇級,開始進入了 Catalina 10.15 這個新世界!

為了想知道目前正進行中的專案,有那些文件檔、程式碼已有更新,我想做個版本變更的存檔。

指尖在鍵盤上輕快地飛舞ing……

打開「終端機」,輸入指令:

$ git status

蛤~~~!哇里勒~~!!

沒想到電腦卻回應我:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

上網求解。還好,方法不難,Command Line Tools for Xcode 得再安裝一下。

再度回到「終端機」,輸入下列指令,問題「搞定」!

$ xcode-select --install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment