Github开源代码仓库上传项目代码步骤

  • 第一步:新建仓库(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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值