git pull提示如下信息时候的操作

执行git pull时提示信息如下:

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
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> dev

解决办法:
把本地分支跟远端分支进行关联

git branch --set-upstream-to=origin/dev dev
git branch --set-upstream-to=origin/master master

posted @ 2020-03-24 18:34  哈喽哈喽111111  阅读(845)  评论(0编辑  收藏  举报