git01 - git项目初始化并推送至远程仓库

This commit is contained in:
MI-Air 2022-06-05 08:26:39 +08:00
parent e78a63a61e
commit a54f0c74b9

View File

@ -6,16 +6,23 @@ git init
``` ```
### 2. 添加到暂存区 ### 2. 添加到暂存区
> 添加指定文件
``` ```
git add git01.md git add git01.md
``` ```
> 添加全部文件
```
git add .
```
### 3. 检查状态 ### 3. 检查状态
``` ```
git status git status
``` ```
### 4. 提交到本地库 ### 4. 提交到本地库
``` ```
git commit -m 'git版本库初始化与文件提交操作' git commit -m 'git版本库初始化与文件提交操作'