I wouldn't lump Github with Facebook or Twitter because, at its core, it's just a plain jane git server. If you stick to core features, you can exfiltrate your repos at any time in seconds and move them someplace else. And you can interact with Github's git server with open-source, fully documented tools.