github:创建README.md文件

时间:2024-10-21 04:42:10

1、README.md文件一般是在新建repository时选择创建。如果冤铘讵柘没有选择,则不会创建。但如果后续有想要这个文件,怎么办呢?本经杼鲴奶袒验介绍怎么在现有的repository中创建README.md文件的方法。

github:创建README.md文件
github:创建README.md文件

2、首先,你的电脑必须安装了git客户端。因为后续要通过git命令的形式创建文件。

github:创建README.md文件

3、然后新建一个有readme.md文件的repository(如Hello world),并下载到本地文件夹中。

github:创建README.md文件
github:创建README.md文件

4、解压下载好的压缩包

github:创建README.md文件

5、在鼠标右键点击文件夹,选择“Git Hash Here”

github:创建README.md文件

6、输入命令:git initgit add README.mdgit commit -m "test commit&鳎溻趄酃quot;git remote add originhttps://github.com/ZJLG/Test.gitgit push -u origin master

github:创建README.md文件
github:创建README.md文件
github:创建README.md文件

7、重新加载Test,发现包含了一个README.md文件

github:创建README.md文件
© 手抄报圈