add cloned gits to personal Gitlab
git branch -vva * master c9ef011 [origin/master] te remotes/origin/master c9ef011 te
- Automatically sync changes on master codebase to forked codebase in gitlab
- Gitlab: Can't clone repo over SSH
- How to migrate gitlab backups to new server which has latest gitlab version
- Customize gitlab “Create Repository” instructions for new projects
- Git merge compare from to meaning
- Issue w/ Git push
2 Solutions collect form web for “add cloned gits to personal Gitlab”
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
Your problem is explained here: Git repository within Git repository, which links to here: Nested GIT repo gotchas!
A convenient option if you have many repos is to mass import:
- go to the directory of a namespace (user or group), e.g.
- get the bare repo:
git clone --bare http://github.com/me/project. The created repo will end in
.gitand this is required.
bundle exec rake gitlab:import:repos RAILS_ENV=production. The GitLab projects will get automatically created on the datbase for you under the user