LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2013, 01:11 AM   #1
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
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.
 
Old 01-16-2013, 05:48 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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/
 
Old 01-29-2013, 06:19 AM   #3
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Original Poster
Rep: Reputation: 24
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make anyone can git clone my project huguohu Linux - Server 0 08-01-2011 08:07 AM
how to make anyone can git clone my project huguohu Linux - Software 0 07-30-2011 09:39 AM
Make a Clone Hard Disk kamalantha Linux - Software 3 08-06-2010 11:43 AM
How to clone CentOS linux? I want to make same copy into another PC. rahilmaknojia Linux - Software 2 05-15-2009 11:14 PM
I want to make clone cd with k3b. akihandyman Linux - Hardware 3 12-04-2003 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration