美文网首页
git本地push 项目到github

git本地push 项目到github

作者: 聆听璇律 | 来源:发表于2018-08-16 17:25 被阅读20次

1.获取ssh-key:输入命令ssh-keygen -t rsa –C “youremail@example.com
会在用户下.ssh文件夹下生成(记住不能用excel打开,他默认是excel打开,要用记事本,用excel打开在用记事本创建出来的github远程仓库地址会有误)

2.本地仓库关联github远程仓库
命令: git remote add origin +地址
3.如果本地仓库关联了github 想撤销关联
命令:git remote rm origin
如果还不行就去 vi .git/config 修改配置文件

相关文章

网友评论

      本文标题:git本地push 项目到github

      本文链接:https://www.haomeiwen.com/subject/xquobftx.html