github仓库代码克隆或git pull不到本地,怎么办?(本地代码更新到仓库,服务器拉取实时访问!)

github仓库代码克隆或git pull不到本地,怎么办?仔细一看原来是没有把服务器上的公钥加入到github仓库中,下面一起来看看! 首先登录到服务器,没有秘钥的,先生成密钥对 ssh-keygen -t dsa  可得到两个文件,id_dsa是私钥,id_dsa.pub是公钥: ~/.ssh/id_dsa  ~/.ssh/id_dsa.pub  vim ~/.ssh/id_dsa.pub 进
相关文章
相关标签/搜索