I always like to have a backup copy of all my important git repositories hosted on Github. I use a private repository at Gitlab to mirror each of these repositories. Currently, I have a Github Action workflow configured to copy it on any git push on any branches.
Posts for: #Git
Git Info Variables on Hugo
Enable Git Info Variables
Enable
.GitInfo
object for each page (if the Hugo site is versioned by Git). This will then update theLastmod
parameter for each page using the last git commit date for that content file.
Working with Git Stash
Git stash is a great set of commands while working on volatile porjects where you are just trying out a proof of concept or a module.
Using a remote repository with Glitch.com
Glitch is a online workspace that support javascript for development with live previews.
Deploy a NodeJS application using Git
Remote Repository on Deployment Server
Create two folders named project.git
and project.source
. Create a bare git repo in project.git