From b6c39a53fc9c3dc930e6882341c5ea40d37a1559 Mon Sep 17 00:00:00 2001 From: zyimm Date: Wed, 29 Mar 2023 16:14:31 +0800 Subject: [PATCH] =?UTF-8?q?Git=20=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E4=BB=A5=E5=8F=8A=E8=BF=9C=E7=A8=8B=E5=88=86?= =?UTF-8?q?=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/git/batch_delete_branch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/git/batch_delete_branch.md b/_posts/git/batch_delete_branch.md index 4b42505..7318843 100644 --- a/_posts/git/batch_delete_branch.md +++ b/_posts/git/batch_delete_branch.md @@ -43,4 +43,4 @@ git branch | grep -v "main" | xargs git branch -D git branch -r | grep -v "main" | sed 's/origin\//:/' | xargs git push ``` -`main`为要保留的分支名称,可以根据需要进行修改。最后一个命令中的sed命令是将远程分支名中的"origin/"替换为":/",因为git push命令中需要使用的远程分支名不包含"origin/" \ No newline at end of file +`main`为要保留的分支名称,可以根据需要进行修改。最后一个命令中的sed命令是将远程分支名中的`origin/`替换为`:/`,因为git push命令中需要使用的远程分支名不包含`origin/` \ No newline at end of file