I was fortunate enough to obtain a free micro-plan Github account to use for my schoolwork through Github’s EDU program. However, I am not sure how best to structure this for my CS classes. Ideally, I would have a different repository for each class — CS101, CS102, etc. However, the micro-plan only allows up to 5 repositories, and I will be taking more than 5 classes within the next year or two. So, is there a way to structure one repository to keep commits ‘separate’ for each folder, i.e. have one repository with multiple ‘sub’-repositories (basically a submodule).
Any advice is appreciated.
Thanks!
Branching
For each class, run within the repository
git checkout --orphan <classname>, and you can get a new parentless branch for that class’s content.When getting local copies of your repository, run
git clone --single-branch --branch <classname> <url> <localdir>, and it will only clone and later fetch that class’s branch.Bitbucket
As trauzti said, I would definitely recommend a Bitbucket account. While the UI isn’t as pretty as Github’s, it has all the same functionality, and they do allow free unlimited private repositories. I use it for my schoolwork. If you really want to use Github though, then the above would work.