Skip to Content

πŸ› οΈ Setting Up GitLab

Note

Before using GitLab for development, follow these steps to set up your account and configure Git for seamless integration.

Step 1 Sign Up / Log In

  • Visit https://gitlab.forge99.com . Input your credentials and click on Sign in button.
  • If the credentials did not work, reach out to your IT admin or project lead.

Step 2 Configure Git with GitLab

  • Open a terminal and set up your Git username and email (must match your GitLab account):
terminal
git config --global user.name "Your Name" git config --global user.email "[email protected]"

Step 3 Generate SSH Keys

Using SSH keys with Git and GitLab enhances security and simplifies the connection between your computer and your GitLab account.

Note

If an SSH key is not yet available in your GitLab account, follow the steps below.

Step 1 Open Terminal

Step 2 Copy and Paste Command

  • Replace the comment with your email address.
terminal
ssh-keygen -t ed25519 -C "<comment>"

Step 3 Press Enter

  • The displayed output will be like this:
terminal
Generating public/private ed25519 key pair. Enter file in which to save the key (/home/user/.ssh/id_ed25519):
  • Just hit enter until you see the > symbol.

Add an SSH Key to GitLab

Step 1 Open Terminal

Step 2 Copy and Paste Command

Using Git Bash

terminal
cat ~/.ssh/id_ed25519.pub | clip

Using macOS

terminal
tr -d '\n' <Steps ~/.ssh/id_ed25519.pub | pbcopy

Step 3 Add Key to GitLab

  • Sign in to your account.
  • Navigate to your profile at the upper left corner and click Edit Profile.
  • On the sidebar, find and click the SSH Keys.
  • Click the Add new key button.
  • Do Ctrl + V to paste the ssh key generated earlier.
  • Then, click the Add key button that can be found at the bottom part.
  • The generated key is now already added on your GitLab account.
Last updated on