GitLab Basics
- GitLab - Squashing Commits
- GitLab - Rebase Operation
- GitLab - Add a File
- GitLab - Create a Branch
- GitLab - Fork a Project
- GitLab - Create Project
- GitLab - SSH Key Setup
- GitLab - Git Commands
- GitLab - Installation
- GitLab - Introduction
GitLab Users and Groups
GitLab Issue Tracker
- GitLab - Wiki Pages
- GitLab - Milestones
- GitLab - Referencing Issues
- GitLab - Merge Requests
- GitLab - Create Issue
GitLab Instance Management
GitLab Continuous Integration
- GitLab CI - Container Registry
- GitLab CI - Cycle Analytics
- GitLab CI - Advanced usage of CI
- Configuring GitLab Runners
- GitLab CI - Permissions
- GitLab - CI/CD Variables
- GitLab - CI/CD
- GitLab CI - Introduction
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
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 cpck on the New project button in the dashboard −
Step 2 − It will open the New project screen as shown below in the image −
Enter the project name, description for the project, visibipty level (accessing the project s visibipty in pubpcly or internally) and cpck 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 −
Push the Repository to Project
Step 4 − You can clone the repository to your local system by using the git-clone command −
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 −
Advertisements