LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to make a directory clone-able? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-directory-clone-able-4175445801/)

RaviTezu 01-16-2013 01:11 AM

How to make a directory clone-able?
 
Hi LQ Folks,

This is regarding Distributed Version control System "GIT" :

I'd like to explain my doubt using an example..

1. Let's think we have a directory with name "gitx".
2. In order to make it controlled by GIT.. we have to run "git init" inside the gitx directory.
3. My Question is ..how can i make this gitx directory clone-able by others in my private network?

I know how to clone it using ssh.. i want it to do it using git protocol.

Kustom42 01-16-2013 05:48 PM

git clone directory path/web address


So you could setup taht directory as an NFS mount accessible on the other systems or have it be served via http.

---------- Post added 01-16-13 at 04:49 PM ----------

Check out http://www.jedi.be/blog/2009/05/06/8...it-repository/

RaviTezu 01-29-2013 06:19 AM

Got it on my own!!

You have to create a bare repository. you can use ...
Quote:

git clone --bare url repo-name.git(optional)
You have to use one of the following methods to make a repo clone-able:

1. The user should have SSH access to that machine which is hosting this repo.
2. Use http method to clone a repo.(Mostly used for public repo's).
3. Use gitosis/gitolite to clone the repo.

I prefer gitolite for easy and most secure user management.

Good luck. :)


All times are GMT -5. The time now is 06:53 PM.