出現(xiàn)場景
有時候打開Idea或者Android Studio時,會出現(xiàn)以下錯誤提示,這是idea的bug,無法識別git。
Git is not installed
Cannot identify version of git executable: no response
然后發(fā)現(xiàn)內(nèi)置的git也不能識別項目的log信息了。
解決方案
打開設(shè)置,選擇Version Control->Git
點擊Test文章來源:http://www.zghlxwxcb.cn/news/detail-511204.html
如果git目錄沒錯的話,點擊test以后下面會出現(xiàn)Git版本的提示。如果不能正確顯示git的版本,說明目錄不對,手動選擇正確的git目錄即可。
最后查看git的log,發(fā)現(xiàn)能正常顯示了,同時也能正常pull和push了。文章來源地址http://www.zghlxwxcb.cn/news/detail-511204.html
到了這里,關(guān)于解決Idea報錯出現(xiàn)Git is not installed的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!