Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   I need some advices with GitHub/Git directory structure (https://www.warriorforum.com/programming/1112737-i-need-some-advices-github-git-directory-structure.html)

Xzahn 19th September 2015 10:01 AM

I need some advices with GitHub/Git directory structure
 
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.

AboutTown 2nd October 2015 01:08 PM

Re: I need some advices with GitHub/Git directory 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'.

synapticmishap 4th October 2015 01:24 PM

Re: I need some advices with GitHub/Git directory structure
 
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

Xzahn 5th October 2015 11:21 AM

Re: I need some advices with GitHub/Git directory structure
 
Quote:

Originally Posted by AboutTown (Post 10312033)
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.

Quote:

Originally Posted by synapticmishap (Post 10314939)
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.


All times are GMT -6. The time now is 02:33 AM.