Setup GitLab Repository On Windows 10
Last Updated :
04 Apr, 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: [email protected]
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 “[email protected]”
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/abc/Test.git

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
Git- Setting up a Repository
Git is a widely used version control system that helps developers manage and track changes in their codebase. Whether you are working on a personal project or collaborating with a team, setting up a Git repository is the first step to using Gitâs powerful features. This article will guide you throug
3 min read
Managing Git Repositories with GitLab
GitLab is a powerful platform for managing Git repositories, offering a list of features that provide collaboration, code review, continuous integration/continuous deployment (CI/CD), and more. This guide will walk you through Managing Git Repositories with GitLab. Table of Content How to Access Git
3 min read
How To Clone a Repository From Gitlab?
Cloning a repository in Git involves creating a local copy of a project from a remote server. This allows you to work on the project on your local machine and later push your changes back to the remote repository. GitLab, one of the popular platforms for hosting Git repositories, provides a straight
3 min read
How to Fork a GitHub Repository?
GitHub is a great application that helps you manage your Git repositories. Forking a GitHub repository is a common practice that allows you to create your own copy of a repository hosted on GitHub. In this article, we will learn more about Git-Fork and its uses. Table of Content What is GitHub Repos
3 min read
GitLab - SSH Key Setup
Setting up SSH keys for GitLab is an important step for secure and password-less authentication when interacting with your repositories. SSH (Secure Shell) keys provide a secure way of logging into a server and are widely used for automated processes and secure communication between GitLab and your
4 min read
How To Rename A Repository on GitHub?
Renaming a repository on GitHub is a simple task that might be necessary for several reasons: action may include project renaming, consolidation of repositories, improper naming conventions or, in general, redundancy and clarity. In this detailed guide, each of the steps involved in renaming a repos
6 min read
How to Add Code on GitHub Repository?
GitHub is a powerful platform for hosting and sharing code. Whether youâre working on a solo project or collaborating with others, adding code to a GitHub repository is essential. Hereâs a step-by-step guide on how to add your code to a GitHub repository. Steps to Add Code on GitHub RepositoryStep 1
2 min read
How to Install Git on Windows
Git is a powerful version control system used by developers worldwide. If you're looking to set up Git on your Windows machine, you have several options. This article will walk you through the most reliable and effective methods for installing Git on Windows, ensuring you stay up to date with the la
5 min read
How to use CMD for Python in Windows 10?
Using the Command Prompt (CMD) is an effective way to interact with Python on your Windows 10 machine. Whether you're writing scripts, testing code, or running programs, mastering CMD for Python in Windows 10 is crucial. This article will guide you on how to run Python in CMD, execute scripts, and t
4 min read
Working With Git Repositories
Git is a powerful and widely-used version control system that helps developers manage their codebases efficiently. By using Git repositories, developers can track changes, collaborate with others, and maintain a history of their projectâs development. In this article, we will learn about working wit
7 min read