简体   繁体   中英

How do I manage multiple repositories under a single repository in GitHub

The reason is that, I want to create a single nice repository named "Stanford CS193P Homeworks" as a main repo (Just like a folder, which is nice to see in Github to present my code) under which i want to add all the homework 1, homework 2, etc.,

When i tried that i was unable to see the pushed repository,

You can see that the folder icon marked as grey in the image below,

https://www.dropbox.com/s/5irwj0xo7jpzw0f/Git.png

Each of those are individual git repos created in XCode 5.

Is it possible ? if so how do i enable it. ?

Why not create a single repo, with a directory intended for each homework assignment?

so when someone does a clone , they get this:

  • root
    • hw1
    • hw2
    • hw3
    • etc...
    • README.md

Just copy the contents from each of your homework repos into a folder, and move them to a new repo.

Or, you could try using git submodules. I've never used them myself, but they seem to do what you're trying to do:

https://git.wiki.kernel.org/index.php/GitSubmoduleTutorial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM