github创建repository
我们先下载一个github桌面版
挺好用的
https://desktop.github.com/
下载一个
然后我们登录之后
来创建一个新的repository
我们点击 Current repository
然后点击 Add
然后我们看见有3个选项
1.Clone
2.Create
3.Add
然后我们选择Create New Repository
然后我们看见
1.Name
仓库名
2.Description
描述
3.Local path
选择路径
4.Initialize this repository with a README
创建README
5.Git ignore
忽略文件
6.License
证书
然后我们填一下
1.Name
MyFirstDemo
2.Description
This is my first demo
3.Local path
F:\project\MyFirstDemo
4.Initialize this repository with a README
勾选
5.Git ignore
选择None
6.License
选择None
这里我要介绍一下README
如果我们选择创建README文件
那么就会自动生成一个README.md
这个README其实就是这个仓库的说明文件
会自动和github进行关联
当我们打开或者别人打开这个仓库的地址的时候
就会在最下方看到说明
如果我们不创建这个README也是可以的
这样的话就没有任何说明了
然后我们打开这个没有README的仓库的地址的时候
就会有个小提示
Help people interested in this repository understand your project by adding a README.
意思是
帮助别人来理解你的项目
然后有个Add a README按钮
我们按下这个按钮
就会帮助为我们创建一个README
现在我们回到桌面版
填写完所有选项之后
按下Create repository
就成功创建了我们的仓库repository