首页 > 其他分享 >git pull提示当前branch没有跟踪信息 There is no tracking information for the current branch 使用第二种方法,设置本地reposi

git pull提示当前branch没有跟踪信息 There is no tracking information for the current branch 使用第二种方法,设置本地reposi

时间:2022-10-31 18:34:42浏览次数:50  
标签:pull git repository There master branch

git pull提示当前branch没有跟踪信息 There is no tracking information for the current branch 使用第二种方法,设置本地repository和远程repository关联

在执行git pull的时候,提示当前branch没有跟踪信息:

git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
  • 1
  • 2
  • 3

对于这种情况有两种解决办法,就比如说要操作master吧,一种是直接指定远程master:

git pull origin master
  • 1

另外一种方法就是先指定本地master到远程的master,然后再去pull:

git branch --set-upstream-to=origin/master master
git pull
  • 1
  • 2

这样就不会再出现“There is no tracking information for the current branch”这样的提示了。

https://blog.csdn.net/qq_43248623/article/details/117447291

标签:pull,git,repository,There,master,branch
From: https://www.cnblogs.com/sunny3158/p/16845299.html

相关文章

  • git pull报错:There is no tracking information for the current branch
    gitpull报错:Thereisnotrackinginformationforthecurrentbranch报错:Thereisnotrackinginformationforthecurrentbranch.Pleasespecifywhichb......
  • 【 云原生 | kubernetes 】- Argo CD Gitlab身份验证及SSO单点登录
    :zap:前言:了解OAuth协议。OAuth是一种授权协议,它可以用来保证第三方只有当获得授权的时候,才能访问授权者的权限我们之前文章已经大概了解了ArgoCD的作用和一些用法。在......
  • Coding上创建项目、将IDEA中的代码提交到Coding上的代码仓库、Git的下载、IDEA上配置G
    一、Git的安装以及子啊IDEA上配置Git(下载好的可以跳过)git官网:https://git-scm.com/参考这位博主的git下载教程。也是很详细()https://blog.csdn.net/orange228/article/det......
  • .gitignore文件不生效
    1、配置a)确保.gitignore文件和.git文件夹在同级目录b)配置语法##此为注释–将被Git忽略*.a#忽略所有.a结尾的文件!lib.a#但lib.a除外(......
  • git
    gitcommitgitcommit-s提交的信息中带有signed-off-by:gitloggitlogfilename/dir查看某个文件/目录的历史gitlog–stat显示当前commit在上一次commit基础上修......
  • 如何使用码云、git
    码云官网https://gitee.com/ 注册登录新建仓库输入名称,其他的自己选吧,然后创建Git全局设置:gitconfig--globaluser.name"默永"//用户名gitconfig--globalu......
  • git 第一次拉取和提交
    文章目录​​一、第一步首先拉取代码​​​​正常使用我这里做测试添加了个测试文件夹​​​​切换分支并且提交修改内容(如果是想提交到master就不用替换)​​​​二、如果......
  • 学习git使用
    文章目录​​选择git的位置​​​​第一步:选择好位置之后右击​​​​第二步:执行命令gitinit​​​​设置全局​​​​第三步:选择git的克隆命令gitclone网址​​​​第四......
  • svn:提交报错 is not known to exist in the repository and is not part of the commi
    https://blog.csdn.net/hwb33333/article/details/85164092今天遇到这个问题,提了半天提不上去,之前也没人更新东西,不知道啥原因,试了一下终于好了 方法:1.将更改的文件粘......
  • IDEA中集成使用git
    在idea中配置git安装好IntelliJIDEA后,如果Git安装在默认路径下,那么idea会自动找到git的位置,如果更改了Git的安装位置则需要手动配置下Git的路径。选择File→Settings打开......