我在我的Mac上安裝了Git。當我在終端做的「where is」的路線是:如何在卸載Xcode(使用Android Studio)後繼續在Mac上使用Git?
/usr/bin/git
我使用Android Studio和GitHub的桌面客戶端,也沒有問題爲止。
以前我已經安裝了Xcode,但是我一個星期前卸載了它。從那時起,Android Studio中沒有檢測到Git的,我得到以下錯誤:
xcrun: error: active developer path ("/Volumes/Vega/Applications/Xcode.app/Contents/Developer") does not exist, use
xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools (or seeman xcode-select
)
的Android Studio顯示到Git ,顯示終端(/usr/bin/git
)相同的可執行文件路徑,但是當我點擊「測試」按鈕它顯示相同的錯誤。
我不善於從終端處理Git,總是使用桌面客戶端。
現在我卸載了Xcode,在我的Android工作室(或任何地方)繼續使用Git需要做些什麼?
我搜索了信息,但我無法修復它。
在此還看到了類似的問題:http://stackoverflow.com/questions/31632593/how-can-i-install-and-use-latest-git-on -mac-os-x-10-9 – nwinkler