创建GitHub项目,并推送本地代码

来源:互联网 发布:nginx 后端服务器宕机 编辑:程序博客网 时间:2024/05/24 04:56
1)安装Git,此步略,就是下载exe,然后安装。安装成功后,右键Git Bash Here。


2)获取本地密钥


3)添加KEY,从本地 C:\Users\xxx\.ssh\id_rsa.pub中拷贝key值
地址:https://github.com/settings/keys


添加成功后,显示:


4)创建仓库
地址:https://github.com/new


5)默认Git地址:
https://github.com/difffate/SpringProjects.git
在项目文件夹,右键,Git克隆。

确定,拉取下代码。

6)写代码,右键提交代码










6)到github上

可以看到代码,已上传。至此完成GitHub项目创建及上传代码。
0 0
原创粉丝点击