Skip to content

Instantly share code, notes, and snippets.

View chadly's full-sized avatar

Chad Lee chadly

View GitHub Profile
@chadly
chadly / delete-build-tags.sh
Last active August 29, 2015 14:02
Deletes remote and local git tags that match the format v1.0.0+123
#!/bin/bash
#http://blog.siyelo.com/how-to-bulk-delete-remote-git-tags/
git ls-remote --tags origin | awk '/^(.*)(\s+)(.*\+[0-9]+)$/ {print ":" $2}' | xargs git push origin
git tag -l | awk '/^(.*\+[0-9]+)$/ {print $1}' | xargs git tag -d
@chadly
chadly / .gitconfig
Last active August 26, 2024 17:43
Setup global git configuration with Beyond Compare 4 and WSL2
[core]
editor = code --wait
[user]
name = Chad Lee
email = [email protected]
[pull]
rebase = true
[push]
default = upstream