Git拉取代码报错:Can't Update No tracked branch configured for branch dev or the branch doesn't exist.To make your branch track a remote branch call

错误:

 解决方法:

第一步:

git pull origin(远程仓库名称) develop(远程分支名称) --allow-unrelated-histories

第二步:

git branch --set-upstream-to origin(远程仓库名称)/develop(远程分支名称) dev(本地分支名称)

显示如下则为成功,可正常拉取代码

 

posted @ 2023-05-23 10:00  Guardian0769  阅读(629)  评论(0)    收藏  举报