GitLab – Create Project


GitLab – Create Project


”;


In this chapter, we will discuss about how to create a new project in the GitLab.

Step 1 − To create new project, login to your GitLab account and click on the New project button in the dashboard −

GitLab Create Project

Step 2 − It will open the New project screen as shown below in the image −

GitLab Create Project

Enter the project name, description for the project, visibility level (accessing the project”s visibility in publicly or internally) and click on the Create project button.

Step 3 − Next it will create a new project (here given the project name as first-gitlab-prjt) with successful message as shown below −

GitLab Create Project

Push the Repository to Project

Step 4 − You can clone the repository to your local system by using the git-clone command −

GitLab Create Project

The clone command makes a copy of repository into a new directory called first-gitlab-prjt.

Step 5 − Now go to your newly created directory and type the below command −

C:>cd first-gitlab-prjt
C:first-gitlab-prjt>touch README.md

The above command creates a README.md file in which you can put the information about your folder.

Step 6 − Add the README.md file to your created directory by using the below command −

C:first-gitlab-prjt>git add README.md

Step 7 − Now store the changes to the repository along with the log message as shown below −

C:first-gitlab-prjt>git commit -m "add README"

The flag -m is used for adding a message on the commit.

Step 8 − Push the commits to remote repository which are made on the local branch −

C:first-gitlab-prjt>git push -u origin master

The below image depicts the usage of above commands in pushing the commits to remote repository −

GitLab Create Project

Advertisements

”;

Leave a Reply

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