I believe Github has tools built for leaving a successor in the event of the developers death thats relatively straight forwars.
It seems that Github's successor feature only allows your successor to re-assign ownership for your public repositories. I'm currently using a private repository so this sadly does not work for me. Otherwise I would grab this feature with both hands!