将克隆的gits添加到个人Gitlab [英] add cloned gits to personal Gitlab
问题描述
我拥有一个Gitlab帐户。在运行的仓库中,我从github中克隆了项目,但是在 git add。
中不会被跟踪。
$ b
git branch -vva
* master c9ef011如何添加克隆项目到我的Gitlab账户? [origin / master] te
remotes / origin / master c9ef011 te
一旦你在GitLab中初始化一个项目,你会看到一个像这样的页面:
重要的部分是添加远程:
p> git remote add gitlab git @ mygitlaburl:namespace / myproject.git
您需要通过单击配置文件设置> SSH密钥> 添加SSH密钥来添加公钥。
>以下是完整的说明:如何使用GitLab用户界面管理项目
$ b $ p 更新:
您的问题在这里解释:在Git仓库中存放仓库,链接到这里:嵌套的GIT repo陷阱!
I own a Gitlab account. In a running repository I have cloned projects from github but on git add .
they won't be tracked. How do I add cloned projects to my Gitlab account?
git branch -vva
* master c9ef011 [origin/master] te
remotes/origin/master c9ef011 te
Once you initialize a project in GitLab, you'll see a page like this:
The important part is adding the remote:
git remote add gitlab git@mygitlaburl:namespace/myproject.git
You'll need to add your public key by clicking on Profile Settings > SSH Keys > Add SSH Key.
Here are complete instructions: How To Use the GitLab User Interface To Manage Projects
UPDATE:
Your problem is explained here: Git repository within Git repository, which links to here: Nested GIT repo gotchas!
这篇关于将克隆的gits添加到个人Gitlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!