We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 022ef9b commit aba4313Copy full SHA for aba4313
1 file changed
specs/git/remove_local_branches_not_in_remote.yaml
@@ -0,0 +1,14 @@
1
+---
2
+name: Remove all local branches that aren't in remote
3
+command: |-
4
+ "git branch --merged >/tmp/merged-branches && \
5
+ vi /tmp/merged-branches && \
6
+ xargs git branch -d </tmp/merged-branches"
7
+tags:
8
+ - git
9
+description: "Remove all local branches that doesn't exists in remote repository."
10
+arguments: []
11
+source_url: "https://stackoverflow.com/questions/7726949/remove-tracking-branches-no-longer-on-remote"
12
+author: Mailo Světel
13
+author_url: "https://stackoverflow.com/users/133986/mailo-sv%c4%9btel"
14
+shells: []
0 commit comments