Skip to content

Instantly share code, notes, and snippets.

View nozim's full-sized avatar
🏠
Working from home

Nozim Mehrubonov nozim

🏠
Working from home
View GitHub Profile
@nozim
nozim / git remove merged branches
Last active December 9, 2015 03:14
Remove all branches merged to master
# took from here http://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-have-been-merged
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
@nozim
nozim / git rm all
Last active December 9, 2015 03:11
Remove all files deleted from index
git status --porcelain | grep -E '^ D' | sed -e "s/^ D //" | xargs git rm