From 2b36f8622874a3f91b833d83e1fdf335a8e9d2eb Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Mon, 1 Nov 2021 16:07:24 +0530 Subject: [PATCH] Fix delete local branches that have been squshed & merged in the remote Signed-off-by: Muhammad Falak R Wani --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 23f936d..a98b104 100644 --- a/README.md +++ b/README.md @@ -678,7 +678,7 @@ git remote prune origin ## Delete local branches that has been squash and merged in the remote. ```sh -git branch -vv | grep ': gone]' | awk '{print }' | xargs git branch -D +git branch -vv | grep ': gone]' | awk '$1 != "*" {print $1}' | xargs git branch -D ``` ## Retrieve the commit hash of the initial revision.