执行git pull未跟踪远程分支

很久没有在本地打开过的项目,执行git pull的时候报没有跟踪远程分支的错误如下:

> git pull
There is no tracking information for the current branch.
    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> release/0826

根据提示信息,手动跟踪一下:

git branch --set-upstream-to=origin/release/0826 release/0826

再次拉取:

> git pull
Already up to date.

猜你喜欢

转载自blog.csdn.net/sinat_36050376/article/details/127691154