From 145bdf9119ff82c50d2ac38842c0cca09587d2c5 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 18 Jul 2024 17:10:19 +0800 Subject: [PATCH] doc: update docs/git.md --- docs/git.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/git.md b/docs/git.md index a17ff727501..814f3c11555 100644 --- a/docs/git.md +++ b/docs/git.md @@ -167,6 +167,12 @@ $ git checkout -b new_branch $ git branch -d my_branch ``` +删除本地存在远程不存在的分支 + +```shell +$ git remote prune origin +``` + 将分支 `A` 合并到分支 `B` ```shell @@ -564,6 +570,7 @@ $ git log Branch1 ^Branch2 ``` ### git 迁移 + - 从原地址克隆一份裸版本库 @@ -1129,6 +1136,7 @@ Host github.com ### Fork仓库同步上游仓库 + - 设置上游仓库