首次在github上建立子的仓库,一般为public 

点击右侧new

使用github托管项目

填写仓库名称

使用github托管项目

copy仓库地址右侧书状图标,上传会用到

使用github托管项目


下载git客户端,在需要上传文件到目录下右键会自动出现git bash here

和git GUI here 。本人习惯使用gitbash此处简单介绍上传步骤



初始化本地文件

git init


连接某一个库address是你的copy地址
git remote add origin address


拉一下 库中配置文件
git pull origin master
使用github托管项目

上传
git add .
git commit -m "注释"

git push origin  master

出现以下代码说明上传成功

使用github托管项目


如有疑问可提问。本人也是小白,记录自己的点点滴滴。共同进步

相关文章: