Git Server Config (--bare structure / isage)

24 Views Asked by At

I am still struggling a little with the logic and the proper use / purpose of the --bare repo on a local git server.

On the server I can create the bare repo (repo.git) easily. I understand this bare repo is required. What I do not quite understand is the role / file struture.

Is the bare repo.git and umbrella for all of my future repos or do I need a new bare repo for every project I want to be a repo on my server. for example:

repo.git -project1-repo -project2-repo -project3-repo

Or will I need this setup: repo1.git -project1-repo repo2.git -project2-repo repo3.git -project3-repo

So really what I want to achieve is a repo server which I can manage various websites/apps individually. I was using GitHub with one repo and multiple directories which contain each site/app within. Sadly some of my projects have grown too big for Git Hub.

I hope this makes sense. Any clarification is helpful.

0

There are 0 best solutions below