博客
关于我
如何使用git将项目代码上传到github
阅读量:570 次
发布时间:2019-03-09

本文共 430 字,大约阅读时间需要 1 分钟。

如何用git将项目代码上传到github

1.准备GIT

参考我的博客下载Git 软件

2.身份认证

1.本地生成ssh信息

$ ssh-keygen -t rsa -C "your_email@youremail.com"

例如格式为:xxxx @ qq.com (这里直接一路回车按下去)

2.登录github打开SSH绑定界面

在这里插入图片描述
在这里插入图片描述

点击新增 将生成的ssh.pub中的内容复制进去即可

在这里插入图片描述

3.在git中绑定自己的信息

$ git config --global user.name ""   //名称$ git config --global user.eamil ""  //邮件

3.完成上传

其实在创建的时候,官网上已经说明如何操作了,

在这里插入图片描述

关键代码如下

$ git remote add origin 远端地址$ git add 需要提交的内容$ git commit . "提交"$ git push origin master  提交到远端

完成提交~

转载地址:http://bfspz.baihongyu.com/

你可能感兴趣的文章
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No qualifying bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs<?>‘ available
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
no session found for current thread
查看>>
No static resource favicon.ico.
查看>>
no such file or directory AndroidManifest.xml
查看>>