How to clone an external repository?

473 views
Skip to first unread message

Alexander Schleifer

unread,
May 15, 2012, 9:32:13 AM5/15/12
to scmma...@googlegroups.com
Hi,

how can I clone a foreign hosted repository to my SCM Manager controlled repository? For example I want to clone a repository from github into my own SCM Manager repository. So I can simply access it in my local network to save traffic to external repositories.

Thanks,
Alex

Sebastian Sdorra

unread,
May 15, 2012, 9:44:39 AM5/15/12
to scmma...@googlegroups.com
Hi,
Just clone the existing git repository:

git clone https://github.com/username/repositoryname

Change the directory:

cd repositoryname

Create a repository on SCM-Manager and push the cloned repository:

git push http://your-scm-manager-host/scm/git/repositoryname master


Sebastian

2012/5/15 Alexander Schleifer <alexander...@googlemail.com>:

Alexander Schleifer

unread,
Jun 6, 2012, 3:03:16 AM6/6/12
to scmma...@googlegroups.com
Hi,

sorry for the late answer. The solution works fine, also when updating a previously created repository to the master of the source repository.

Alex


Am Dienstag, 15. Mai 2012 15:44:39 UTC+2 schrieb Sebastian Sdorra:
Hi,
Just clone the existing git repository:

  git clone https://github.com/username/repositoryname

Change the directory:

  cd repositoryname

Create a repository on SCM-Manager and push the cloned repository:

  git push http://your-scm-manager-host/scm/git/repositoryname master


Sebastian

2012/5/15 Alexander Schleifer:
Reply all
Reply to author
Forward
0 new messages