首页 > 其他分享 >【git】idea使用update提示Can't Update No tracked branch configured for branch master or the branch do

【git】idea使用update提示Can't Update No tracked branch configured for branch master or the branch do

时间:2022-11-29 11:45:11浏览次数:41  
标签:origin ... git idea set master branch 分支


1、看右下角的提示信息

【git】idea使用update提示Can

 

2、其实已经提示了

To make your branch track a remote branch call   //需要 本地和远程分支关联

3、提示中已经给出了例子:

git branch --set-upstream-to=origin/分支名

4、解决,我的分支是在origin/master。于是如下:打开git命令窗口

【git】idea使用update提示Can

输入:git branch --set-upstream-to=origin/master/分支名

然后push下就行了

 

 

 

 

 

标签:origin,...,git,idea,set,master,branch,分支
From: https://blog.51cto.com/u_13002884/5894579

相关文章