[easy-git] 16:24:42.332 Git: pull --rebase 执行失败。错误详情:
Error: There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> main
16:24:42.335 原因:本地仓库未设置Git远程仓库URL,请关联远程仓库后再进行pull操作。Git仓库设置
在HbuilderX使用easy-git切换远程仓库后使用git pull --rebase拉取代码时产生该报错,是因为本地分支和远程分支没有建立联系 (使用git branch -vv 可以查看本地分支和远程分支的关联关系),执行下列命令即可解决问题
git branch --set-upstream-to=origin/远程分支的名字 本地分支的名字
或者下方命令进行处理
git pull --progress -v --no-rebase "origin" main
git push --set-upstream --progress "origin" main