更新代码时报错,如下:
branches to build:
service
1.get branch service to dir service
only update code
Your account has been blocked.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git clone failed
解决方案:
第一步 在本地重新生成私钥
命令:ssh-keygen -t rsa -b 2048 -C “your_email@example.com”
第二步 将新生成的公钥拷贝到github上
第三步重新设置下远程url
git remote set-url origin 远程仓库地址
如:$ git remote set-url origin ssh://git@git.xxxxx.com:50022/innovation/xxxxx.git