Setup GitLab Repo
Setup GitLab Repo
less than a minute
Set global variable first.
git config --global user.name "Opekktar Yggdrasil"
git config --global user.email "opekktar@opekkt.tech"
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@gitlab.com:rkey/rkey.tech.git
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
public
.hugo_build.lock
deploy.sh
public.tar
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 20, 2022: rewrite (3c5008e)