git01 - git项目初始化并推送至远程仓库
This commit is contained in:
parent
e78a63a61e
commit
a54f0c74b9
9
git01.md
9
git01.md
@ -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版本库初始化与文件提交操作'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user