DEV Community

Discussion on: How to cleanup a branch (PR) with huge number of commits

 
benjioe profile image
Benjioe • Edited

Yeah, you true, so that's was :

Maybe you can :

  • Create a new branch from master when you need unrelated changes, merge it and rebase your feature branch.
  • Or use Trunk Base Development where your branches lives 1 day max
  • Ask yourself, do your really need a clean history ? Or good comments are good enough ? (not for code-maat)