Idea 不能點擊VCS直接pull項目 報錯“Can't update: no tracked branch No tracked branch configured for branch ”

一: Idea 不能點擊VCS直接pull項目

Can't update: no tracked branch
        No tracked branch configured for branch master.
        To make your branch track a remote branch call, for example,
        git branch --set-upstream-to origin/master master (show balloon)

 

二:輸入: git branch --set-upstream master origin/master

 

三: 注意檢查terminall是git控制檯而不是cmd命令

則會報錯 : 'git' 不是內部或外部命令,也不是可運行的程序或批處理文件
檢查terminal的shell path是不是git的bash.exe  ?如果是默認的cmd.exe   需要將shell path改成git的bash.exe ,修改後重啓idea即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章