将现有的git项目导入到GitLab中? [英] Import an existing git project into GitLab?

查看:720
本文介绍了将现有的git项目导入到GitLab中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Gitlab安装帐户,我在其中创建了存储库ffki-startseite

现在我想克隆存储库 git ://freifunk.in-kiel.de/ffki-startseite.git 到所有提交和分支的存储库中,所以我可以开始在自己的范围内对它进行处理。



如何导入它?

解决方案

push:

  git remote add gitlab url-to-gitlab-repo 
git push gitlab master


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-startseite.git into that repository with all commits and branches, so I can start working on it in my own scope.

How can I import it?

解决方案

Add the new gitlab remote to your existing repository and push:

git remote add gitlab url-to-gitlab-repo
git push gitlab master

这篇关于将现有的git项目导入到GitLab中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆