/
Not everything has to be public

Not everything has to be public

Just as you wouldn’t think of sharing all the photos you take on social media, nor you should think of doing it with your written code too. GitHub acts as an awesome file storage and versioning platform, but at the same time, it is a social network.

Your profile can tell lots about you, so show only what you want to be seen. Do you have some messy weekend projects uploaded to GitHub? Make it private and keep it until it meets the public repository requirements.

Also, never commit sensitive info, like passwords, secrets, tokens, etc. Use the '.gitignore' file to make sure you don't commit unintended files. Commit clean, refactored code, avoid committing unnecessary files, make sure you structure your repository appropriately.

 


Next >

Related content