• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Create a Project in Gitlab

1321

To Create a Project in GitLab

GitLab is a web based project management repository based on Git. It lets you to create and manage your projects effectively. As a part of our GitLab series, we have covered several articles related to creating a group and to add users to group. Also, we have covered the method to take a backup and to restore files from the GitLab. In this article, we will learn about the method to create a project on GitLab. It is quite simple to create a project in GitLab.

To Create a Project

Log into your GitLab with your administrator credentials using your web browser. Once logged in, choose the “ Admin Area” as shown in the following image.

GitLab

In the Admin Area, you will see the number of projects, users and groups available on your GitLab. Click “ New Project” to create new one.

GitLab_overview

Create a new project by entering details such as Project path, Project name, Project description and Visibility Level as shown in following image.

GitLab_Projectname

A new project is created, now you need to create a repository for the newly created project. You can find some set of commands after creating project we need to run it in order to create repository.

sample_project

To create a Repository for your project

In order to create a repository, make sure you run the global setup. But, before that, use the following command to verify if your server is compatible with git command.

If the server doesn' t support git command, use ‘ yum install git -y’ command.

[root@git ~]# git config --global user.name " root" 
[root@git ~]# git config --global user.email admin@example.com

Now you can use the following command to clone git repository.

[root@git ~]# git clone http://root@192.168.5.143/root/sample-project.git
Cloning into ' sample-project' ...
Password for ' http://root@192.168.5.143' :
warning: You appear to have cloned an empty repository.

Initially you will get warning message for the empty repository. After cloning you will see a directory created under your current working directory in the name of your project you have created in gitlab.

[root@git ~]# ls
anaconda-ks.cfg  Desktop  Documents  Downloads  initial-setup-ks.cfg  Music  Pictures  Public  sample-project  Templates  Videos

Navigate to the newly created directory and create file called “ README.md”

[root@git ~]# cd sample-project/
[root@git sample-project]# touch README.md

Once a new file is created in repository, you can use the git command to add them.

In order to add the file into the Git, you can use the following command.

[root@git sample-project]# git add README.md

Once the file is added, commit it using the following command.

[root@git sample-project]# git commit -m " add README" 
[master (root-commit) d490e1d] add README
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 README.md

Once the file is committed, push it to Git.

[root@git sample-project]# git push -u origin master
Password for ' http://root@192.168.5.143' :
Counting objects: 3, done.
Writing objects: 100% (3/3), 210 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To http://root@192.168.5.143/root/sample-project.git
 * [new branch]      master ->  master
Branch master set up to track remote branch master from origin.

While you push the file into Git, you will be asked to enter password. Use your GitLab administrator login password. Refresh your page, you will see a new tab for Repository.

repository

By this way, you can easily add a new project in your GitLab, and also create a repository for that project.

Tags:
noah
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

how to install the gitlab package in linux

A

use the following command to install the gitlab package in centos
# yum intsall git

Q

what is the use of creating the project in gitlab?

A

GitLab is a web based project management repository based on Git. It lets you to create and manage your projects effectively. As a part of our GitLab series, we have covered several articles related to creating a group and to add users to group. Also, we have covered the method to take a backup and to restore files from the GitLab. In this article, we will learn about the method to create a project on GitLab.

Q

How to create project in gitlab?

A

refer the following link for create profect in gitlab
https://www.linuxhelp.com/how-to-create-a-project-in-gitlab/

Q

How to add users im gitlab?

A

use the following link for adding the user in gitlab
https://www.linuxhelp.com/how-to-create-a-group-on-gitlab/

Q

how to login the gitlab?

A

Log into your GitLab with your administrator credentials using your web browser.

Related Tutorials in How to Create a Project in Gitlab

Related Tutorials in How to Create a Project in Gitlab

How to add local folder to a GitLab project
How to add local folder to a GitLab project
Apr 20, 2017
How to reset gitlab admin password
How to reset gitlab admin password
Mar 30, 2017
How to Install and configure GitLab runner on centos 7
How to Install and configure GitLab runner on centos 7
Oct 22, 2021
How to change default backup location in GitLab
How to change default backup location in GitLab
Apr 17, 2017
How to add users to group in GitLab
How to add users to group in GitLab
Feb 15, 2017
How to Change the Administrator Password in GitLab-CE on CentOS 7.6
How to Change the Administrator Password in GitLab-CE on CentOS 7.6
Aug 3, 2019
How to add SSH key to a GitLab account
How to add SSH key to a GitLab account
Apr 22, 2017
How to Create Description Templates for Gitlab Projects
How to Create Description Templates for Gitlab Projects
Mar 28, 2017

Related Forums in How to Create a Project in Gitlab

Related Forums in How to Create a Project in Gitlab

gitlab
baseer class=
How to check gitlab version
Oct 24, 2017
Git
vertonskjelvic class=
error: failed to push some refs to in gitlab
Nov 24, 2017
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
gitlab
brayden class=
GitLab: The project you were looking for could not be found
May 23, 2017
gitlab
ceriaimmaculate class=
Gitlab : how to rename branch name
Oct 26, 2017
gitlab
otwol class=
502 Error Whoops Gitlab is Taking too much of time to respond
Jul 29, 2019
gitlab
ajinfernando class=
Gitlab : how to switch remote repository URL from ssh to http
Oct 25, 2017
gitlab
otwol class=
How to Check the version of Gitlab-CE 12.0.3 On CentOS 7.6 and Where is it exactly Located
Jul 23, 2019

Related News in How to Create a Project in Gitlab

Related News in How to Create a Project in Gitlab

Gitlab assures its users of data recovery post data loss incident
Gitlab assures its users of data recovery post data loss incident
Feb 4, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.