把项目第一次提交到git上面之后,然后修改了代码,再次提交代码时,报了这个错误,然后上网查了一下解决方法,特此记录

1.在自己本地项目目录下面的.git目录下找到config文件

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

打开后进行修改,我的这个文件打开时只有这点内容

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

然后添加相应的内容

[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"] 
        remote = origin
        merge = refs/heads/master
    [remote "origin"] 
        url = http://192.168.100.249:13690/r/qypt/drawback.git
        fetch = +refs/heads/*:refs/remotes/origin/*

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

打完收工!!!!

相关文章:

  • 2021-08-01
  • 2021-12-12
  • 2021-09-08
  • 2021-07-18
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2021-05-05
  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案