The current branch is not configured for pull No value for key branch.master.merge found in config

痛定思痛。 2022-08-10 03:55 150阅读 0赞

在本地工程目录找到config文件

比如工程文件位于../workspace/android/helloworld
到该目录下,进入.git文件夹,会看到一个config文件

修改config文件内容为:

  1. [core]
  2. repositoryformatversion = 0
  3. filemode = false
  4. logallrefupdates = true
  5. [branch "master"]
  6. remote = origin
  7. merge = refs/heads/master
  8. [remote "origin"]
  9. url = 【远程仓库的url
  10. fetch = +refs/heads/*:refs/remotes/origin/*

再执行pull命令

发表评论

表情:
评论列表 (有 0 条评论,150人围观)

还没有评论,来说两句吧...

相关阅读