Setup GitLab Repository On Windows 10
Last Updated :
11 Jul, 2025
GitLab is a place where we can manage our git repositories. It can be considered as an alternate of GitHub and Bitbucket. Currently, Gitlab is offering four versions namely Core, Starter, Premium, and Ultimate.
- Core: For small and personal projects. Free of cost.
- Starter: For small and personal projects who need professional support. It is paid.
- Premium: For teams who need high availability, high performance, and/or 24/7 support.
- Ultimate: For large enterprises that want to align strategy and execution with security and compliance.
In this article, we will use the Core version and learn how to setup GitLab repository on a Windows system in order to manage your codes and projects. So let's start: 1. Create Account on GitLab.
Username or Email: abc@gmail.com
Password: **********
2. Create New Project, named as “Test”.


3. Git for Windows and install it. 4. Open Cmd and run following command to check the successful installation of Git.
git --version

5. Set username and email
git config --global user.name ABC
git config --global user.email “abc@gmail.com”
Note: Username and email should be same as your Gitlab Account. 6. Check for Success:
git config --global --list

7. Go to Directory from where you want to upload project. Right Click there and open “Git Bash Here”.

8. Initialize Git here.
git init

9. Add changes from all tracked and untracked files.
git add -A

10. To add a new remote, use Project URL from GitLab:
git remote add origin https://gitlab.com/users/sign_in

11. Commit changes with message:
git commit -m "Your_Message"

12. Now push project on GitLab
git push origin master

Pull GitLab Repository
13. Go to the master branch to pull the latest changes from there
git checkout master
14. Download the latest changes in the project
git pull REMOTE NAME-OF-BRANCH -u
(REMOTE: origin) (NAME-OF-BRANCH: could be "master" or an existing branch)
Create New Branch
15. Create a branch. Spaces won't be recognized, so you will need to use a hyphen or underscore.
git checkout -b NAME-OF-BRANCH
16. Work on a branch that has already been created
git checkout NAME-OF-BRANCH
17. View the changes you've made
git status
18. Add changes to commit. You'll see your changes in red when you type "git status".
git add CHANGES IN RED
git commit -m "DESCRIBE THE INTENTION OF THE COMMIT"
19. Send changes to gitlab.com
git push REMOTE NAME-OF-BRANCH
Similar Reads
SQL Commands | DDL, DQL, DML, DCL and TCL Commands SQL commands are the fundamental building blocks for communicating with a database management system (DBMS). It is used to interact with the database with some operations. It is also used to perform specific tasks, functions, and queries of data. SQL can perform various tasks like creating a table,
7 min read
JavaScript Tutorial JavaScript is a programming language used to create dynamic content for websites. It is a lightweight, cross-platform, and single-threaded programming language. It's an interpreted language that executes code line by line, providing more flexibility.JavaScript on Client Side: On the client side, Jav
11 min read
TCP/IP Model The TCP/IP model is a framework that is used to model the communication in a network. It is mainly a collection of network protocols and organization of these protocols in different layers for modeling the network.It has four layers, Application, Transport, Network/Internet and Network Access.While
7 min read
Basics of Computer Networking A computer network is a collection of interconnected devices that share resources and information. These devices can include computers, servers, printers, and other hardware. Networks allow for the efficient exchange of data, enabling various applications such as email, file sharing, and internet br
11 min read
React Interview Questions and Answers React is an efficient, flexible, and open-source JavaScript library that allows developers to create simple, fast, and scalable web applications. Jordan Walke, a software engineer who was working for Facebook, created React. Developers with a JavaScript background can easily develop web applications
15+ min read
Java Programs - Java Programming Examples In this article, we will learn and prepare for Interviews using Java Programming Examples. From basic Java programs like the Fibonacci series, Prime numbers, Factorial numbers, and Palindrome numbers to advanced Java programs.Java is one of the most popular programming languages today because of its
8 min read
React Tutorial React is a powerful JavaScript library for building fast, scalable front-end applications. Created by Facebook, it's known for its component-based structure, single-page applications (SPAs), and virtual DOM,enabling efficient UI updates and a seamless user experience.Note: The latest stable version
7 min read
Introduction to Java Java is a high-level, object-oriented programming language developed by Sun Microsystems in 1995. It is platform-independent, which means we can write code once and run it anywhere using the Java Virtual Machine (JVM). Java is mostly used for building desktop applications, web applications, Android
4 min read
JavaScript Interview Questions and Answers JavaScript is the most used programming language for developing websites, web servers, mobile applications, and many other platforms. In Both Front-end and Back-end Interviews, JavaScript was asked, and its difficulty depends upon the on your profile and company. Here, we compiled 70+ JS Interview q
15+ min read
Second Largest Element in an Array Given an array of positive integers arr[] of size n, the task is to find second largest distinct element in the array.Note: If the second largest element does not exist, return -1. Examples:Input: arr[] = [12, 35, 1, 10, 34, 1]Output: 34Explanation: The largest element of the array is 35 and the sec
14 min read