0

I'd like a git alias to merge then delete a single local branch. The question How to alias in git delete merged branches addresses how to remove all merged branches; I'm essentially looking to keep my local repository clean as I go.

davidvandebunte
  • 1,286
  • 18
  • 25

1 Answers1

0
mnd = "!f() { git merge --no-ff ${1} && git branch -d ${1}; }; f"
davidvandebunte
  • 1,286
  • 18
  • 25