Egglocke glitch

I tried to do an egglocke, but I don’t know how to get the eggs out of the PC! Can anyone help me?

Catch pokemon and the pokemon will be replaced with an egg.

I mean when I choose my starter, I put them in the PC, but I can’t get an egg out.

I think you get to keep the starter so you are not stuck with an egg while fighting wild pokemon.

It forces me into the PC

I think you have to shift your starter and then swap i t waith an egg. BTW I have not done an egglocke so I don’t really know XD