Skip to content

Commit

Permalink
added git cleanup alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Xplouder committed Apr 11, 2023
1 parent 21d254c commit 196fa1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
- partials/vim_customizations.yaml
- partials/os_settings.yaml
- partials/cleanup.yaml
- partials/git_customizations.yaml
6 changes: 6 additions & 0 deletions tasks/partials/git_customizations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- name: add git "cleanup" alias
become: false
community.general.git_config:
name: alias.cleanup
scope: global
value: !git branch | grep -E -v '(\\^\\*|master|main|dev)' | xargs git branch -D

0 comments on commit 196fa1e

Please sign in to comment.