IANAL, but unless it's a court or other public body telling you to do something, you are under no obligation to do anything whatsoever. Lawyers use scary words to intimidate and scary regular people but until the courts are involved, they're just posturing. In doubt, always ask a real lawyer before doing anything rash.
However, even if they did keep the source code, there are issues and other information on github that would not be preserved. I think it's safe to assume this information is very relevant to litigation involving a scenario such as this one.
Even if that wasn't a factor, the court may get the idea that the repository was wiped in order to destroy evidence. Convincing them otherwise may be technically challenging.
If a defendant is so warned and destroys evidence, then the trial court may impose sanctions such as an adverse inference instruction (essentially, instructions to the jury that any evidence not produced by a side should be inferred to be damaging to that side's case). So any lawyer who stayed awake during civil procedure is going to make sure that they keep that option alive in the event they decide to sue.