A code license can stop copying code and using binaries, I understand that CP learns from code but doesn't copy it verbatim nor uses binaries. Including a "no-CP" provision in a proprietary license wouldn't help either because such a project would most likely violate some current (or future) Github TOS.
so the only way to not have your code as a learning source for co-pilot is to move all the code off GitHub? And even in that case your past/existing code would be source material?