doc: update docs/git.md (#406)

This commit is contained in:
Albert 2023-08-02 12:25:50 +08:00 committed by GitHub
parent 3ab21896c5
commit 30eb2e8b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ $ git branch -av
$ git checkout my_branch
```
创建一个名为 `new_branch` 的新分支
创建并切换到新分支`new_branch`
```shell
$ git checkout -b new_branch