現(xiàn)狀:切換了分支以后,由于本地沒有拉取代碼,導(dǎo)致git選項(xiàng)未顯示。網(wǎng)上搜索解決棒法,記錄如下。
解決:
1、選擇菜單【File】下的【setting】
2、選擇【Version Control】,選擇【+】,然后【Apply】,然后【OK】。
3、此時(shí)會(huì)發(fā)現(xiàn)git選項(xiàng)已經(jīng)出現(xiàn)。
補(bǔ)充
如果拉取代碼時(shí)報(bào)錯(cuò)ssh variant ‘simple’ does not support setting port,在git bash中輸入以下命令即可。文章來源:http://www.zghlxwxcb.cn/news/detail-716727.html
git config --global ssh.variant ssh
原文鏈接
https://blog.csdn.net/zhangxiaodui/article/details/108141276文章來源地址http://www.zghlxwxcb.cn/news/detail-716727.html
到了這里,關(guān)于idea打開git項(xiàng)目后沒有g(shù)it選項(xiàng)(已經(jīng)集成了git)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!