在初始化仓库之前,要确认ssh key是否正确 ssh -T git@github.com 正确的结果如下 Hi username! You've successfully authenticated, but GitHub does not provide shell access. 在你的github上创建一个远程的respository ps:不要勾选Initilalize this repository ...,因为我们要在本地 init respository 然后切换到本地仓库目录下…
1.在本地产生秘钥和公钥 [root@jacky git_project]# ssh-keygen -t rsa -C "jacky-lulu@1073740572@qq.com" Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa #在这里输入rsa秘钥所在的目录 Enter passphrase (empt…
1.本地创建一个本地仓库 2.关联远程端:git remote add origin git@github.com:用户名/远程库名.git3.同步远程仓库到本地git pull这个时候会报错If you wish to set tracking information for this branch you can do so with:git branch --set-upstream-to=origin/<branch> master再按提示执行git branch --set-upst…