You know git is distributed? You can keep all your repos both on GitLab, GitHub, as many local machines as you want... etc. all at the same time.
The main point isn't about the source code, it's about all the rest : bug report, discussions, planning..