把项目第一次提交到git上面之后,然后修改了代码,再次提交代码时,报了这个错误,然后上网查了一下解决方法,特此记录
1.在自己本地项目目录下面的.git目录下找到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/*
打完收工!!!!