diegotoral / dotfiles

Diego's dotfiles
MIT License
1 stars 0 forks source link

Create git-clean function #4

Open diegotoral opened 9 years ago

diegotoral commented 9 years ago

The function will look like

# Deletes local branchs that were merged into master
function() {
  git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
}