Skip to content

Commit

Permalink
doc: update docs/git.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 18, 2024
1 parent b46532c commit dfd88b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ $ git checkout -b new_branch
$ git branch -d my_branch
```

删除本地存在远程不存在的分支

```shell
$ git remote prune origin
```

将分支 `A` 合并到分支 `B`

```shell
Expand Down Expand Up @@ -564,6 +570,7 @@ $ git log Branch1 ^Branch2
```

### git 迁移
<!--rehype:wrap-class=col-span-2-->

- 从原地址克隆一份裸版本库

Expand Down Expand Up @@ -1129,6 +1136,7 @@ Host github.com
<!--rehype:className=wrap-text-->

### Fork仓库同步上游仓库
<!--rehype:wrap-class=col-span-2-->

- 设置上游仓库

Expand Down

0 comments on commit dfd88b2

Please sign in to comment.