GitLab

How to Mirror a Local GitLab Repository to a Remote GitLab Repository

How to Mirror a Local GitLab Repository to a Remote GitLab Repository

Would you like to have your local GitLab repository be mirrored to a remote repository such as one hosted on GitLab.com?

I have long considered self-hosting my own Git server to use for personal projects, but I never took the time to do so. Now that I have Proxmox and have come to love being able to run containers/virtual machines for everything, I thought it was time to set up a local GitLab installation. My main GitLab repository which I use to host this site is on GitLab.com. Ideally, I would like to push all my updates to the local GitLab server and in turn have the updates be migrated to the remote repository on GitLab.
Inadvertently Pushed a Hugo Theme as a Git Submodule

Inadvertently Pushed a Hugo Theme as a Git Submodule

Have you made this mistake when using a static site generator on GitLab?

I generated this website using the static site generator Hugo, and I am hosting it on GitLab. Following the instructions on this blog, I read a comment about not pushing your Hugo themes to GitLab as a Git submodule. Not thinking about it when it came time to push my local files to GitLab, I accidentally pushed my theme as a Git submodule. Sure enough, that failed miserably. I don’t think all of the files were even committed properly since it failed importing my theme as a Git submodule.