How Do You Create a New Project in GitLab?

Problem scenario
You want to test out GitLab.  How do you create your first project?

Solution
Prerequisite
This assumes you have GitLab installed; if you do not know how, see this posting.

Procedures
1.  Log into GitLab via the web UI.  (If you do not have credentials and you set it up, the web UI for GitLab should have prompted you to enter a new password twice.  This password is for the "root" user.)

2.  Click the icon that looks like a document for "Create a project". 

3.  Enter a name in the field for "Project name". Set the visibility level to "Public" for non-sensitive files and to make testing Gitlab easy.  Click "Create project".  

4.  At the top of the screen it may say "You won't be able to pull or push project code via SSH until you add an SSH key to your profile."  Click the "add an SSH key" portion.

5.  Go to the back end (the character prompt) of the Linux server with GitLab.  If you have not created an id_rsa.pub file for the Linux user that will interact with GitLab, log into Linux as that user (or use sudo su jdoe, assuming jdoe is the user).  Then run this command:

ssh-keygen -t rsa -P "" # Accept the default location

6.  Obtain a copy of the content of the Linux user's id_rsa.pub file that will interact GitLab.  Paste it into the web browser for the field that is "Key." 

7.  Click "Add Key" in the web UI.  Now you have a project in GitLab.

Leave a comment

Your email address will not be published. Required fields are marked *