I hereby claim:
- I am andrewmriley on github.
- I am andrewmriley (https://keybase.io/andrewmriley) on keybase.
- I have a public key whose fingerprint is C490 CF36 3C24 3965 C9EF D71A 1061 75C9 D59C 19DA
To claim this, I am signing this object:
#!/bin/sh | |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep origin | grep -v HEAD`;do echo -e `git show --format="%ci %cr %aE" $branch | head -n 1` \\t$branch; done | sort -r |
# change out REMOTENAME with your actual remotes reference | |
git branch -r | grep REMOTENAME | peco | cut -d/ -f2- | xargs -n 1 git push --delete REMOTENAME |
## Choose one and add it as an alias or throw it in a script ## | |
### Modern Git Thanks to @Pezmc | |
# Linux/Unix Wayland | |
git branch --show-current | wl-copy | |
# Linux/Unix X11 | |
git branch --show-current | xclip -selection clipboard | |
# MacOS |
I hereby claim:
To claim this, I am signing this object: