idea在pull代码时,出现以下错误:
解决办法:
在控制台输入:
git branch --set-upstream-to=origin/远程分支 本地当前分支
示例:
git branch --set-upstream-to=origin/HuangLongProperty-master HuangLongProperty-master
成功提示:
Branch ‘HuangLongProperty-master’ set up to track remote branch ‘HuangLongProperty-master’ from ‘origin’.
然后在去pull代码就可以了
IDEA中使用Git拉取代码时出现Can‘t update: no tracked branch错误
最新推荐文章于 2023-10-16 22:52:38 发布