I need some advices with GitHub/Git directory structure

by 3 replies
4
Hi,

I'm in programming academy and I decided to upload everything I do there into GitHub. A little practice wouldn't hurt. But I realized that the way I structured the repo might not be the most efficient way. I have a repo for all the stuff from the academy. I have a separate folders for each course and each assignment (homeworks, projects, teamworks, exams). That was the initial idea. The problem is that every time I pull the repo, I pull everything from the academy repo, even though I'm working on only one homework from a specific course. How is the best way to manage it? Maybe, repo for the academy and then new repos for each course?

Also when I'm working on local repo, lets say a homework for a course. Every time I start new homework for each course I have to make a new and delete the old repo.
#programming #advices #directory #github or git #structure
  • How are you synching to github? Are you using the git command line or a software client. You can set git up so that you only synch the latest changes and do not have to pull the whole repository every time. For example when you need to fetch the whole repository you can use 'git clone' if you already have a local repository you can just update the latest changes with 'git pull'.
    • [1] reply
    • Xzahn

      It's not quite clear exactly what you're trying to do or what structure you've got.

      It's not really a problem if you need to keep pulling from a remote repo - it just keeps it up to date.

      It might help to see your repo and the structure and have more information about what your'e trying to achieve exactly.

      John
      • [1] reply

Next Topics on Trending Feed

  • 4

    Hi, I'm in programming academy and I decided to upload everything I do there into GitHub. A little practice wouldn't hurt. But I realized that the way I structured the repo might not be the most efficient way. I have a repo for all the stuff from the academy. I have a separate folders for each course and each assignment (homeworks, projects, teamworks, exams). That was the initial idea. The problem is that every time I pull the repo, I pull everything from the academy repo, even though I'm working on only one homework from a specific course. How is the best way to manage it? Maybe, repo for the academy and then new repos for each course?