diff options
Diffstat (limited to 'src/content/pastebins/2022/07')
-rw-r--r-- | src/content/pastebins/2022/07/14/git-cleanup.adoc | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/content/pastebins/2022/07/14/git-cleanup.adoc b/src/content/pastebins/2022/07/14/git-cleanup.adoc index 52cd17f..b223f86 100644 --- a/src/content/pastebins/2022/07/14/git-cleanup.adoc +++ b/src/content/pastebins/2022/07/14/git-cleanup.adoc @@ -1,18 +1,7 @@ ---- += git-cleanup command -title: git-cleanup command - -date: 2022-07-14 - -layout: post - -lang: en - -ref: git-cleanup-command - ---- - -``` +[source,sh] +---- #!/bin/sh set -eu @@ -67,4 +56,4 @@ shift $((OPTIND - 1)) git branch --merged | grep -v -e '^\*' -e '^. main$' | xargs git branch -d -``` +---- |