码迷,mamicode.com
首页 > 其他好文 > 详细

提交到github远程仓库遇到的问题

时间:2016-12-04 20:56:26      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:family   soft   pos   gen   exist   github   exists   仓库   远程仓库   

1.could not read from remote repository

  可能原因是没有将ssh 密匙添加到github,所以没有权限

  解决办法:

    1. ssh-keygen -C ‘your@email.address‘ -t rsa

    2. 将第一步生成的rsa pub 添加github 中




2.fatal: remote origin already exists.
远程仓库主分支已经存在

解决办法:
    1.git remote rm origin
    2.git remote add origin git@github.com:xxxx/gitdemo.git

提交到github远程仓库遇到的问题

标签:family   soft   pos   gen   exist   github   exists   仓库   远程仓库   

原文地址:http://www.cnblogs.com/Andy963/p/6131489.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!