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

来源:互联网 发布:java手机软件 编辑:程序博客网 时间:2024/05/22 01:52

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

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

修改config文件内容为:

[core]    repositoryformatversion = 0    filemode = false    logallrefupdates = true[branch "master"]     remote = origin     merge = refs/heads/master [remote "origin"]     url = 【远程仓库的url】    fetch = +refs/heads/*:refs/remotes/origin/*

再执行pull命令

0 0
原创粉丝点击