Setup GitLab Repo

Setup GitLab Repo

Matching Blog Post

Set global variable first.

git config --global "Opekktar Yggdrasil"
git config --global ""

Then I create a blank project on GitLab. I do not initialize the repo, as that would cause issue when uploading this project for the first time. With the empty repo created I then initialize and upload my project.

git init --initial-branch=main
git remote add origin
git add .
git commit -m "Initial commit"
git push -u origin main

I have an install script I do not want in the repo and I also do not want the public directory in the repo either. So my .gitignore file looks like this:

bsh ➜  cat .gitignore

Last modified September 20, 2022: rewrite (3c5008e)