Import an existing git project into GitLab?

前端 未结 10 496
南旧
南旧 2020-12-07 06:50

I have an account of a Gitlab installation where I created the repository \"ffki-startseite\"

Now I want to clone the repository git://freifunk.in-kiel.de/ffki

10条回答
  •  感情败类
    2020-12-07 07:32

    git clone --mirror git@github.com:username/repo-name.git
    
    git remote add gitlab ssh://git@servername.com/username/repo.git
    
    git push -f --tags gitlab refs/heads/*:refs/heads/*
    

    It is better to do it over ssh, the https might won't work

提交回复
热议问题