I need some advices with GitHub/Git directory structure

by Xzahn
3 replies
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.
#advices #directory #github or git #structure
  • Profile picture of the author AboutTown
    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'.
    {{ DiscussionBoard.errors[10312033].message }}
    • Profile picture of the author synapticmishap
      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
      {{ DiscussionBoard.errors[10314939].message }}
      • Profile picture of the author Xzahn
        Originally Posted by AboutTown View Post

        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'.
        I'm using the command line. That works only on my machine, but I'm often using it working on public computer and I have to clone the whole repo. Even now it takes some time to download everything.

        Originally Posted by synapticmishap View Post

        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
        I cannot understand how it can help, but there you go - https://github.com/Todiros/SoftUni.git

        P.S. Its kind of a mess right now, and I'm going to clean it up once I figure out how to do it properly.
        {{ DiscussionBoard.errors[10316572].message }}

Trending Topics