From 2d41e38e24babbb325640265d3f0f8aa8ffc173f Mon Sep 17 00:00:00 2001 From: claviering Date: Sat, 20 Apr 2019 21:44:31 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=B7=BB=E5=8A=A0=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E8=BF=9C=E7=A8=8B=E5=92=8C=E6=9C=AC=E5=9C=B0=E5=85=B3=E8=81=94?= =?UTF-8?q?=E7=9A=84=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f3008f8..016ad36 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ Git是一个 “分布式版本管理工具”,简单的理解版本管理工 * [关联远程分支](#关联远程分支) * [列出所有远程分支](#列出所有远程分支) * [列出本地和远程分支](#列出本地和远程分支) +* [查看远程分支和本地分支的对应关系](#查看远程分支和本地分支的对应关系) +* [远程删除了分支本地也想删除](#远程删除了分支本地也想删除) * [创建并切换到本地分支](#创建并切换到本地分支) * [从远程分支中创建并切换到本地分支](#从远程分支中创建并切换到本地分支) * [删除本地分支](#删除本地分支) @@ -209,6 +211,18 @@ git branch -r git branch -a ``` +## 查看远程分支和本地分支的对应关系 + +```sh +git remote show origin +``` + +## 远程删除了分支本地也想删除 + +```sh +git remote prune origin +``` + ## 创建并切换到本地分支 ```sh git checkout -b