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即可

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