Skip to content

Instantly share code, notes, and snippets.

# shortform git commands
alias g='git'
# remove .DS_Store from the repository you happen to staging by mistake
find . -name .DS_Store -exec git rm --ignore-unmatch --cached {} +
# Delete all local branches that have been merged into HEAD.
git branch -d `git branch --merged | grep -v '^*' | grep -v 'master' | tr -d '\n'`
# Credit an author on the last commit