Push just member

I want that only members can upload code. How can I set this?

Set the project as Private and only Members will have access to the project. Permissions for each member depends on Role you give them.
To set project as Private go to Settings → General → Visibility, project features, permissions and set Project visibility.
Learn more: Visibility of projects