Meh, it&#x27;s an easy situation to get out of though.  Especially with a typed language and decent IDE: right-click, &quot;inline function&quot;; check your git status to see what changed, go to those files and remove unused branches (which a decent IDE should hightlight and provide 2-keystroke fixes for).  2 minutes, done.<p>Grotesquely replicated code is a much more difficult situation to resolve.<p>I&#x27;m guessing the OP primarily uses untyped languages.  I&#x27;d offer that <i>that</i> is the core of the problem, not the abstractions.