github
JaniceDong
勤能补拙
展开
-
Could not read from remote repository.Please make sure you have the correct access rights.and the re
出现这个问题是因为,没有在github账号添加SSH key,不过不要紧张,其实很简单的步骤就能搞定。第一大步:获取SSH key1、在终端命令行输入ssh-keygen -t rsa -C "用户名"2、接下来就是根据提示输入存放id-rsa的本地路径了3、可以一直Enter键把需要设置都设置成默认的设置下面是测试的一个例子:$ ssh-keygen -t rsa -原创 2017-03-30 14:25:12 · 1087 阅读 · 0 评论 -
failed to push some refs to git
在使用git对代码进行push到github时出现错误出现错误的主要原因是github的README.md文件不在本地目录中通过命令git pull --rebase origin master本地代码库中多了READ.md文件,再执行git push -u origin master就可把代码传到github中原创 2017-03-30 14:43:53 · 318 阅读 · 0 评论 -
error: src refspec masster does not match any.
出现这个问题的时候不要紧张,其实都只是因为你要push的文件没有commit,空目录是不能提交的。因此只要把需要提交的代码,commit就ok了。在这里提醒git用户,在git add 和gitcommit 之后为了防止中间出现纰漏,尽量在每次状态改变时查看代码状态git status,确保所需的状态是自己意料之中的。原创 2017-03-30 15:24:47 · 611 阅读 · 0 评论 -
github常见操作和常见错误!错误提示:fatal: remote origin already exists.
原文地址:http://blog.csdn.net/dengjianqiang2011/article/details/9260435 如果输入$ Git remote add origin git@github.com:djqiang(github帐号名)/gitdemo(项目名).git 提示出错信息:fatal: remote origin already e转载 2017-06-06 10:33:12 · 406 阅读 · 0 评论