

Or is it better to make one repo for every project?Īgain, it's really up to you. Should you make one GitHub repo for each programming class? And then store every project in that repo? One course per repo or one project per repo? If you need to work with a partner on a project, you can add them as a collaborator and that will let them access the private repo. A simple way to do that would be to send them the project in a zipped file via email or on the cloud (OneDrive, Google Drive, etc).

If you want to show someone your code, you can always share it with them privately. It's always best to err on the side of caution and keep the repo private. Plus, your class may have some special rules about whether you're allowed to make certain code public or not. Future students may copy the code, and that serves no good purpose. Doesn't matter if you intended for it or not.Įven when the class is over, I wouldn't recommend making it public. Many, many, many professors and teachers will say that if someone else uses your code, you are also at fault for letting them have access to it. If you make your repo a public one, that means everyone can see your code. Typically, other students are also in the class working on the project at the same time as you. Hands down, you want to make your GitHub repository private.

I currently keep my projects in GitHub repositories and will refer to that method in this article, but you can check out some good alternatives here as well. There are a few good tips I've learned, and I thought I'd share them in a short post. I also see this question asked online occasionally, and it's one I asked before too. I'm in my final semester of college, and I've seen it done in a variety of ways. How you choose to organize your projects is up to you. Whether you're doing your own lesson plan as a self-taught programmer, attending a bootcamp, going to a college, or are in any other learning situation, it's important to stay organized and keep track of projects you care about or need to submit. Cover Image by Memed_Nurrohmad from Pixabay
