github笔记之1:把工程上传 到github

1. create a  new  repository

Repository name: 仓库名称

Description(可选): 仓库描述介绍

Public, Private : 仓库权限(公开共享,私有或指定合作者)

Initialize this repository with a README: 添加一个README.md

gitignore: 不需要进行版本管理的仓库类型,对应生成文件.gitignore

license: 证书类型,对应生成文件LICENSE

1.1

github笔记之1:把工程上传 到github

 1.2

github笔记之1:把工程上传 到github

 

 1.3.点击Clone or dowload会出现一个地址,copy这个地址备用。

github笔记之1:把工程上传 到github

会用到的命令: 

github笔记之1:把工程上传 到github 

 github笔记之1:把工程上传 到github

 https://github.com/ZengjxRsingstar/demo20191006.git

2.本地操作 

2.1首先右键你的项目,如果安装git了,右键会出现两个新选项,分别为Git Gui Here,Git Bash Here,这里选择Git Bash Here,进入如下界面。

github笔记之1:把工程上传 到github

2.2黏贴  github的 刚才创建的地址:github笔记之1:把工程上传 到github

github笔记之1:把工程上传 到github

2.3这个步骤以后你的本地项目文件夹下面就会多出个文件夹,该文件夹名即为github上面的项目名比如demo20191006

github笔记之1:把工程上传 到github

 2.4把本地项目文件夹下的所有文件(除了新多出的那个文件夹不用),其余都复制到那个新多出的文件夹下.

github笔记之1:把工程上传 到github

 2.5 输入命令  cd demo20191006     ls  命令查看当前的路径文件:

github笔记之1:把工程上传 到github

2.6 输入  git  add . 注意 add  与 .有空格哦。

github笔记之1:把工程上传 到github

2.7   git   commit   -m  "first commit"    

    "first   commit" 是自定义的

github笔记之1:把工程上传 到github

2.8  把本地仓库push到github上面,此步骤可能需要输入帐号和密码    git   push   -u  origin  master

github笔记之1:把工程上传 到github

 2.9  刷新网页

 github笔记之1:把工程上传 到github