Einrichten eines GitLab-Repositorys unter Windows 11

watch 2m, 25s
views 2

08:28, 29.05.2026

Artikel Inhalt
arrow

  • Prerequisites
  • Step 1: Configure Git
  • Step 2: Create a New Repository on GitLab
  • Step 3: Set Up SSH Keys (Recommended)
  • Step 4: Clone the Repository to Your PC
  • Step 5: Add Files and Make Your First Commit
  • Step 6: Sync Changes and Collaborate
  • Final Thoughts

Whether you’re a developer working on personal projects or collaborating with a team, version control is essential. GitLab, a web-based DevOps platform, offers a robust Git repository manager with CI/CD pipelines, issue tracking, and more.

This guide walks you through setting up a GitLab repository on a Windows 11 machine from scratch.

Prerequisites

Before getting started, ensure the following are installed.

  • Git for Windows. Download Git and follow the installation instructions. During installation, select the default options unless you have specific preferences.
  • GitLab Account. Sign up at gitlab.com if you haven’t already.
  • Optional: Git Bash or Windows Terminal. While Git Bash is bundled with Git for Windows, you can also use Windows Terminal or PowerShell.

Step 1: Configure Git

Once Git is installed, open Git Bash or PowerShell and configure your username and email:

git config --global user.name "Your Name" 
git config --global user.email "your.email@example.com"

This information will be linked to your commits.

Step 2: Create a New Repository on GitLab

  1. Log in to your GitLab account.
  2. Click the "New Project" button.
  3. Choose "Create blank project".
  4. Fill in the Project name, visibility level (private, internal, public), and other settings.
  5. Click Create project.

Once the project is created, GitLab will show you the repository URL (HTTPS or SSH).

Step 3: Set Up SSH Keys (Recommended)

Using SSH provides a secure and passwordless connection.

  • Generate a new SSH key:
ssh-keygen -t ed25519 -C "your.email@example.com"

Press Enter through the prompts. Your key will be saved in C:\Users\<YourUser>\.ssh\.

  • Copy the public key:
cat ~/.ssh/id_ed25519.pub

Copy the output.

  • In GitLab:
  1. Go to User Settings > SSH Keys.
  2. Paste the key, give it a title, and click Add Key.

Step 4: Clone the Repository to Your PC

Navigate to the folder where you want to store your local copy and run:

git clone git@gitlab.com:username/repository-name.git

Or use HTTPS (you’ll be prompted for username/password unless you configure a personal access token):

git clone https://gitlab.com/username/repository-name.git

Step 5: Add Files and Make Your First Commit

Navigate into the cloned repo:

cd repository-name

Create or add files, then track and commit them:

echo "# My GitLab Project" > README.md 
git add README.md 
git commit -m "Initial commit"

Push the changes: git push origin main

Step 6: Sync Changes and Collaborate

To pull new changes from GitLab:

git pull origin main

To push your local changes:

git push origin main

You can now collaborate, manage branches, and integrate CI/CD pipelines using GitLab’s interface.

Final Thoughts

Setting up a GitLab repository on Windows 11 is straightforward and a vital step in modern development workflows. With Git and GitLab configured, you're ready to version control your code, track issues, and automate deployment processes.

If you plan to work with teams or manage multiple environments, explore GitLab’s advanced features like merge requests, pipelines, and project access controls.

Teilen

War dieser Artikel für Sie hilfreich?

VPS beliebte Angebote

-15.3%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
75 GB SSD
Bandwidth
Bandwidth
40 Mbps
DDoS Protected SSD-wKVM 2048 Windows

54 /mo

/mo

Alle 12 Monate abgerechnet

-15%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
80 Mbps
DDoS Protected SSD-wKVM 8192 Windows

101 /mo

/mo

Alle 12 Monate abgerechnet

-10%

CPU
CPU
4 Epyc Cores
RAM
RAM
4 GB
Space
Space
50 GB NVMe
Bandwidth
Bandwidth
Unlimited
KVM-NVMe 4096 Linux

16.45 /mo

/mo

Alle 12 Monate abgerechnet

-5.4%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
60 GB HDD
Bandwidth
Bandwidth
300 Gb
wKVM-HDD HK 2048 Windows

11.65 /mo

/mo

Alle 12 Monate abgerechnet

-10%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
20 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 1024 Linux

6.6 /mo

/mo

Alle 12 Monate abgerechnet

-10%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
30 GB SSD
Bandwidth
Bandwidth
Unlimited
10Ge-KVM-SSD 2048 Linux

30.3 /mo

/mo

Alle 12 Monate abgerechnet

-10%

CPU
CPU
6 Epyc Cores
RAM
RAM
8 GB
Space
Space
100 GB NVMe
Bandwidth
Bandwidth
Unlimited
aiKVM-NVMe 8192 Linux

26.93 /mo

/mo

Alle 12 Monate abgerechnet

-21.5%

CPU
CPU
2 Xeon Cores
RAM
RAM
2 GB
Space
Space
75 GB SSD
Bandwidth
Bandwidth
300 GB
wKVM-SSD 2048 HK Windows

26 /mo

/mo

Alle 12 Monate abgerechnet

-10%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
30 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 2048 Linux

8.3 /mo

/mo

Alle 12 Monate abgerechnet

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
400 GB HDD
Bandwidth
Bandwidth
300 Gb
KVM-HDD HK 16384 Linux

40.33 /mo

/mo

Alle 12 Monate abgerechnet

Weitere Artikel zu diesem Thema

cookie

Cookies und Datenschutz akzeptieren?

Wir verwenden Cookies, um sicherzustellen, dass wir Ihnen die beste Erfahrung auf unserer Website bieten. Wenn Sie fortfahren, ohne Ihre Einstellungen zu ändern, gehen wir davon aus, dass Sie mit dem Empfang aller Cookies auf der HostZealot-Website einverstanden sind.