title: Import Existing Local Git Master Repo into Gitlab: Git user Access Issues
body: <p>I have a git master branch on my test server under <code>testvps.subdomain.domain.com:~public_html/domain.com/ZendSkeletonApplication/</code> . I have Gitlab CentOS rpm up and running on that same server now at <a href="http://testvps.subdomain.domain.com:8888" rel="noreferrer">http://testvps.subdomain.domain.com:8888</a></p>
  <h1>Import Local Master Repo into Gitlab</h1>
  <p>I need to import this existing <em>local</em> repository into Gitlab (See earlier question on cloning the repo <a href="https://stackoverflow.com/questions/24257714/make-a-local-git-repo-from-master-based-with-zend-repo-as-origin">here</a> 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 <code>https://username:password@gitlab.com/company/project.git</code> Documentation mentions to copy bare repos to /home/git/</p>
  <h3>What is the best approach?</h3>
  <p>The user git has been added only somehow the home directory was not created I guess that has to be done manually - see link <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-gitlab-as-your-very-own-private-github-clone" rel="noreferrer">here</a> . 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. <strike>Perhaps I should make the master a new origin? How should I go about doing this? </strike></p>
  <h3>Update</h3>
  <p>I have added gitlab .git repo as new remote.</p>
  <pre><code>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)
  </code></pre>
  <p>When I try to push to it I get a request for the password for the git user</p>
  <pre><code>git push -u origin master
  git@testvps.sub.domain.com's password: 
  </code></pre>
  <p>which is not supposed to be needed nor do I have it. How can I fix this?</p>
  <p>PS <code>sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production</code> does not work as it mentions bundle as command is missing</p>