Every day I come closer to writing a “branch eater” Github action that just deletes branches older than ~2 weeks.

If it has passed out of your current mental context and requires merge conflict resolution, it’s a liability. Write it again.

6 comments

  1. @avdi If I have an old branch like that, I tag it with something like "exp-useful-name" and delete the branch. "exp" tells me that this was some experiment. That way the code is still in the repo in case I want to recall how I tried something.

  2. @avdi

    Except for code review work, like in Bitbucket, there's little value to stale branches.

    And if it's needed, the author should be able to rebase and push again, with hardly any effort.

Comments are closed.