Skip to content

Instantly share code, notes, and snippets.

View richmondwang's full-sized avatar
🎯
Focusing

Richmond richmondwang

🎯
Focusing
View GitHub Profile
@richmondwang
richmondwang / .gitignore
Created March 9, 2016 15:58 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@richmondwang
richmondwang / cleanup-local-branches.sh
Last active July 13, 2016 03:51
This will 'delete' (git branch -D) all branches containing a substring (prefix) that are already merged to origin/master
#!/bin/sh
# Created by richmondwang
# Required: bash4, git1.7, sed, awk, grep
#
# This will 'delete' (git branch -dl) all branches
# containing a substring (prefix) that are already merged to origin/master
prefix="feature/richmond/"
# only delete my own branches