Creating your first project on GitLab involves setting up remote repositories, connecting local Git branches, and configuring initial project visibility.

GitLab Project Push Commands

Terminal Commandsbash
# 1. Initialize local repository
git init
git add .
git commit -m "initial commit"
 
# 2. Add GitLab remote repository URL
git remote add origin git@gitlab.com:username/my-project.git
 
# 3. Push local master/main branch to GitLab
git push -u origin main