免密拉取github代码

Posted yaoyaohust

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了免密拉取github代码相关的知识,希望对你有一定的参考价值。

github账户关联所在机器公钥即可:

cd $HOME/

cd .ssh/

如果id_rsa.pub不存在,重新生成:ssh-keygen -t rsa

将id_rsa.pub添加到github账户的SSH密钥列表中

 

# key-free development
git remote -v
git remote remove origin
git remote add origin [email protected]:YourGroup/YourGitRepo.git
git pull
git branch --set-upstream-to=origin/master master
git pull

以上是关于免密拉取github代码的主要内容,如果未能解决你的问题,请参考以下文章