Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Direct pull from github/gitorious/gitlab/... #1102

Closed
cpf opened this Issue · 24 comments
@cpf

It would be nice to be able to pull a project into gitlab directly from github, gitorious, gitlab or another (simple) git host.

@timHerman

Second

@michelkaeser

Definitely!

@chopmann

you mean doing a "git pull git://github.com/gitlabhq/gitlabhq.git" to an existing repository in gitlab, or more like
my repository is on github i want to clone it to gitlab?

@Shuro

go in gitlab, open button "repository from external repository", choose which, for example github, with your access Key (or clone) and import it in your own gitlab (so I think)

@cpf
cpf commented

I was thinking about something in the likes of creating a new project, which already has code in another git repository (e.g. github), where if I push to my gitlab, it would also sync with the "parent" (If applicable, otherwise, a nice addon would be to put down a pull request, but that's not for this issue)

So, workflow: Create new project -> name project -> Define alternative (origin) git repository -> Still provide the usual local repository stuff.
After that, the project is created, the gitlabs repo is also created, and populated automagically with the github version.

@chopmann

I made a rake task As in your workflow, well is a "tiny bit" complex with all the gui stuff, but ill try to work on it.
the usage is: bundle exec rake environment import_repository[source_url,user@emal] RAILS_ENV=production

@cpf
cpf commented

Very cool, I will try and check this out this evening...

@chopmann

i tried it using github git-readonly. I think the next step would be getting the keys from gitlab so you can pull and sync with github. We'll see

@kirantpatil

@chopmann nice work.

@riyad

+1

@jbohren

+1

@chopmann

@riyad I would like to contact you :e-mail:

@riyad

@chopmann you can find my email on my profile (or in the commits ;) )

@randx
Owner

Already in master
import

@randx randx closed this
@randx randx was assigned
@williscool

awesome!

@tua

awesome!

@falinsky

thx!

@mexgui

I need direct pull to gihub form local files on pc similar to BATCHing. All suggestions is to install some cygwin or similar program just to use pulling... I don't want that. I downloaded the library, I edited it and I want to upload my zip directly from github to greate pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.