参考:
https://blog.csdn.net/eva_lu/article/details/80521300
https://blog.csdn.net/liuxiao723846/article/details/80461072
1、git的pull报错The current branch is not configured for pull No value for key branch.master.merge found in configuration
git的commit可以正常执行,但是pull报错。
解决方案:在项目的.git目录下的config文件
原来:
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = http://***.**.**.**/lwd/gdglxt.git //git的存放的ip地址
fetch = +refs/heads/*:refs/remotes/origin/*
添加:
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = http://***.**.**.**/lwd/gdglxt.git //git的存放的ip地址
fetch = +refs/heads/*:refs/remotes/origin/*
可以打开原来正常运行的项目的git下的config文件对比一下。
2、生成公钥
ssh-keygen -t rsa -C "xxxxx@xxxxx.com"