- 第一步:新建仓库(repository)
- 第二步:填写名称,简介(可选)
勾选Initialize this repository with a README选项,这是自动创建REAMDE.md文件。
- 第三步:安装Github shell程序
网址:http://windows.github.com/
- 第四步:打开Git Shell,输入以下命令生成密钥来验证身份
ssh-keygen -C 'your@email.address' -t rsa
连续三个回车之后会在windows当前用户目录下生成.ssh文件夹。
然后把文件夹下的id_rsa.pub文件内容复制。在Title随便输入,Key栏粘贴刚才的密钥。
- 第五步:在Git Shell下输入命令测试刚才的公钥是否认证正确。
ssh -T git@github.com
正确显示:
- 第六步:clone刚才新建的repository 到本地,输入命令:
git clone https://github.com/XiaoYunChaos/nodule_object_detection_system.git
正确clone:
- 第七步:将想上传的代码目录拷贝到此文件夹下
- 第八步:切换到Git shell 命令行下,输入命令:
git init
git add nodule_object_detection_system
git commit -m 'nodule_object_detection_system'
git remote add origin https://github.com/XiaoYunChaos/nodule_object_detection_system.git
git push -u origin master
这样上传成功!希望这篇笔记对您会有些许帮助,这个是我的Github项目地址:https://github.com/XiaoYunChaos/nodule_object_detection_system,欢迎大家Fork指教!有帮助的话来个star哦!
Problem
【1】执行git remote add origin https://github.com/XiaoYunChaos/nodule_object_detection_system.git 出现错误
solve: 执行 git remote rm origin
【2】错误:github RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
solve: 执行 git config http.sslVerify "false"
参考
整体步骤(*):
https://blog.csdn.net/Jackson23333/article/details/81315474
problem及solve:
The file will have its original line endings in your working directory:https://blog.csdn.net/wwrzyy/article/details/80799537
github 上传代码详细:https://www.cnblogs.com/ruofengzhishang/p/3842587.html
github RPC failed:http://www.mamicode.com/info-detail-2441465.html