Setup GitLab Repo
Set global variable first.
git config --global user.name "Robert Key" git config --global user.email "firstname.lastname@example.org"
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 email@example.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
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.