当前分支未配置上游分支 [英] current branch does not have an upstream branch configured

查看:114
本文介绍了当前分支未配置上游分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Visual Studio Team Explorer for Git拉分支的最新更改,但是拉URL被禁用,并且传入的提交"部分显示一条消息,提示当前分支没有配置上游分支没有非跟踪分支的传入提交."知道可能是什么问题或如何解决?

I'm trying to pull the latest changes for a branch in Visual Studio Team Explorer for Git but the Pull url is disabled and the "Incoming Commits" section displays a message hat says "Current branch does not have an upstream branch configured. There are no incoming commits for non-tracking branches." Any idea what the problem might be or how to fix?

推荐答案

我使用以下命令解决此问题: git branch --set-upstream-to = origin/master master

I use following command to fix the issue: git branch --set-upstream-to=origin/master master

这篇关于当前分支未配置上游分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆