Skip to content

Instantly share code, notes, and snippets.

@MarcoSero
Last active August 29, 2015 14:06
Show Gist options
  • Save MarcoSero/2d3b60170bcc4142e303 to your computer and use it in GitHub Desktop.
Save MarcoSero/2d3b60170bcc4142e303 to your computer and use it in GitHub Desktop.

Revisions

  1. MarcoSero revised this gist Sep 11, 2014. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,2 @@
    [alias]
    cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
    cleanupr = "!git fetch --prune ; git branch -r --merged | grep origin | grep -v '>' | grep -v '\\*\\|master\\|develop' | xargs -L1 | cut -d"/" -f2- | xargs git push origin --delete"
    cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
    cleanupr = "!git fetch --prune ; git branch -r --merged | grep origin | grep -v '>' | grep -v '\\*\\|master\\|develop' | xargs -L1 | cut -d"/" -f2- | xargs git push origin --delete"
  2. MarcoSero revised this gist Sep 11, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    [alias]
    cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
    cleanupr = "!git fetch --prune ; git branch -r --merged | grep origin | grep -v '>' | grep -v '\\*\\|master\\|develop' | xargs -L1 | cut -d"/ " -f2- | xargs git push origin --delete"
    cleanupr = "!git fetch --prune ; git branch -r --merged | grep origin | grep -v '>' | grep -v '\\*\\|master\\|develop' | xargs -L1 | cut -d"/" -f2- | xargs git push origin --delete"
  3. MarcoSero created this gist Sep 11, 2014.
    3 changes: 3 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    [alias]
    cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
    cleanupr = "!git fetch --prune ; git branch -r --merged | grep origin | grep -v '>' | grep -v '\\*\\|master\\|develop' | xargs -L1 | cut -d"/ " -f2- | xargs git push origin --delete"