Readd repos

Adds functionality to re-add a repo based on multiple situations.