LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 02: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, 06:48 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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, 07: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:07 AM
how to make anyone can git clone my project huguohu Linux - Software 0 07-30-2011 10:39 AM
Make a Clone Hard Disk kamalantha Linux - Software 3 08-06-2010 12:43 PM
How to clone CentOS linux? I want to make same copy into another PC. rahilmaknojia Linux - Software 2 05-16-2009 12:14 AM
I want to make clone cd with k3b. akihandyman Linux - Hardware 3 12-04-2003 07:25 AM


All times are GMT -5. The time now is 04:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration