Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Jaime Rios
PLUS
Jaime Rios
Courses Plus Student 21,100 Points

Just finished the front end developer track and Github

I already learned about how good it is to use VCS with teams and I'm just starting out with my first two projects, they are quite basic and I developing mostly on my own.

So within this context my question is should I keep my repositories private or public? What is a good criteria to decide when to make them public or private.

2 Answers

Joe Dayvie
Joe Dayvie
11,956 Points

Jaime,

For the most part, I would say allow your repositories to remain public. Since they are smaller, practicing projects go ahead and allow others to view them so you can show off your knowledge and talent =)

At the moment, my github is quite low (https://github.com/Jdayvie) and that is because my main project Program in Person (http://www.programinperson) went from a side project to an actual, built up site. Granted you can .gitignore portions but I decided to simply make my site private on github. It's helpful because I am able to allow certain users to view and examine code if I wish.

Overall I would push all of your projects onto github and have it be shown by possible employers =)

If you want to protect your code from Copyright, you should use private repository. If you want your project to be open source you should go for public repository. You use private repositories mostly when you work for a company that wants to protect its code or wants to work in a "private" or "secret" project. If you are looking for feedback on your code, having a public repository is the best option.