I have a git master branch on my test server under `testvps.subdomain.domain.com:~public_html/domain.com/ZendSkeletonApplication/` . I have Gitlab CentOS rpm up and running on that same server now at <http://testvps.subdomain.domain.com:8888>

Import Local Master Repo into Gitlab
====================================

I need to import this existing *local* repository into Gitlab (See earlier question on cloning the repo [here](https://stackoverflow.com/questions/24257714/make-a-local-git-repo-from-master-based-with-zend-repo-as-origin) with ssh. ) on the same test server. This repo is the master branch NOT the original branch origin which is ZendApplication on Github. For passworded access Gitlab suggested a link like `https://username:password@gitlab.com/company/project.git` Documentation mentions to copy bare repos to /home/git/

### What is the best approach?

The user git has been added only somehow the home directory was not created I guess that has to be done manually - see link [here](https://www.digitalocean.com/community/tutorials/how-to-set-up-gitlab-as-your-very-own-private-github-clone) . Not sure if this is needed for proper imports though. And this being a master branch would require a different approach to import the existing git repository with 20+ commits it seems. Perhaps I should make the master a new origin? How should I go about doing this? 

### Update

I have added gitlab .git repo as new remote.

```
git remote set-url origin git@testvps.sub.domain.com:root/repo.git
git remote -v
origin  git@testvps.sub.domain.com:root/repo.git (fetch)
origin  git@testvps.sub.domain.com:root/repo.git (push)

```

When I try to push to it I get a request for the password for the git user

```
git push -u origin master
git@testvps.sub.domain.com's password: 

```

which is not supposed to be needed nor do I have it. How can I fix this?

PS `sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production` does not work as it mentions bundle as command is missing