You talk like they're different things. This is something the Chinese do. Leave the backdoor as a vulnerability. Sure other people may find it, but that means they have access to it from the git-go (on another note, this should be how you initialize repos in git)
That way when someone finds it, they could go "oops. thanks for pointing this vulnerability out for us. Will fix"