Creating a Shared Private Repo on GitLab

GitLab ( is agitlab company that hosts git repositories in the cloud, like GitHub. Unlike GitHub, GitLab offers free repositories that can have multiple contributors.

Creating a Private Respository

To create your own private git repository on Gitlab:

  1. Create an account
  2. Activate it
  3. Create a project
  4. If you haven’t already, generate an SSL key pair. On Linux:
    ssh-keygen -t rsa -b 4096 -C ""
  5. Add the public half of the key to your new account
    1. Cut and paste the public half of the key into the Key text box
      1. On Linux, by default, it will be in a file called ~/.ssh/
      2. It will start with the token ssh-rsa
      3. Copy the entire contents of the file
    2. Enter a Title that will let you remember which key you are adding
  6. On Linux, test connectivity by running: ssh -T
  7. You should see something like:
    The authenticity of host ' (' can't be established.
    ECDSA key fingerprint is xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.xx.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added ',' (ECDSA) to the list of known hosts.
    Welcome to GitLab, Your Name!

Adding Additional Developers

To give another developer access to your project, you need to set up a group. You can then create projects under the group, or move projects that you created under your own account to the group. Via the group settings, you can add other GitLab users as Guests or Developers on the projects that are under the group.


About jimbelton

I'm a software developer, and a writer of both fiction and non-fiction, and I blog about movies, books, and philosophy. My interest in religious philosophy and the search for the truth inspires much of my writing.
This entry was posted in programming and tagged , , , . Bookmark the permalink.

Leave a Comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s