git(hub): merge and delete branch?

Is it possible to perform in one step:

  • merge a feature branch to master and push it
  • automatically delete that branch locally and remote

?

This are my most common operations for deployments and I've to perform multiple steps to achieve this:

  • switch to master
  • merge feature branch
  • push to master
  • delete branch
  • extra click to delete remotely

Ideally this would be one action (which of course can "fail" at any step therein).

 

thanks

0

请先登录再写评论。