git推送代码被拒绝

执行命令:

#  git push -u origin master-new-branch  -f

报错:

client_loop: send disconnect: Broken pipe
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

原因,ssh的RSA生成做错,需要重新生成

# ssh-keygen -t rsa -C "[email protected]"

复制到github的后端

你可能感兴趣的:(git)