git
Call it The GCDLADB if you like.
Creating a `git` Hook 6 min read Oct 27, 2022 | Updated: Jan 20, 2023 20:20
I recently created Hugo Front Matter Tools which is described as… A collection of Python scripts desinged to help manage Hugo .md content front matter. I already have mechanisms in many projects, like this blog, that help me report the last time ANY content was pushed to GitHub, or the last time a Hugo site was compiled. But it would be nice, especially in the case of Rootstalk, if I could save the last git add date/time into an individual file’s front matter. ...
Collaborating on Hugo Site Development 9 min read Nov 12, 2020 | Updated: Sep 27, 2021 13:42
I’ve nearly completed migration of all Grinnell College Libraries’ static sites to Azure and I’m updating this post to reflect that move. Wherever possible I’ll strike-through outdated information like this, and replace it with updated info. This post will instruct the reader to install necessary tools and engage the workflow I now use to develop and maintain a handful of Hugo static websites. The list of sites now includes both professional, those owned and operated by Grinnell College, as well as “personal” sites that I develop, maintain and host myself. ...
Git Submodule Tips 2 min read Jan 25, 2021 | Updated: Jan 27, 2021 12:10
I seem to have a never-ending struggle with git submodules. Today, I need to add some new features to one of my submodules in a non-ISLE project, but I’ve elected to post this here because this blog is relatively easy to search. I also feel fortunate to have found Mastering Git Submodules from Christophe Porteneuve. So, what I need to do now is update some submodule code, commit, and push that change back to its remote. I will also want to subsequentmly update a pair of projects that use the submodule so they are referencing the newest submodule code. ...
Changing Master to Main 2 min read Jan 25, 2021 | Updated: Jan 26, 2021 11:04
In hindsight, this really should have been post number 100 in the blog, or perhaps it should have happened even earlier. In any event it’s high-time I made this move and captured the process. In June 2020 the good folks at GitHub announced that they would begin removing references to master as a small step forward in removing divisive language in tech. The change dictates that the default branch name of future repositories should be main in place of master. ...
Git Submodule Workflow in ISLE 1 min read Dec 7, 2020
In the past few days I’ve attempted to update the “staging” copy of Digital.Grinnell at https://dg-staging.grinnell.edu and learned a valuable lesson regarding workflow around Git and submodules. Specifically, I found the following resource to be most helpful: https://intellipaat.com/community/9971/git-update-submodule-to-latest-commit-on-origin In case that post ever disappers, here’s the gist of it… The git submodule update command actually tells git that you simply want your submodules to each check out the commit already mentioned in the index of the superproject. If you want to update your submodules to the most recent commit available from their remote, you’ll try this directly within the submodules. ...
Archiving What Git Ignores 3 min read Feb 26, 2020 | Updated: Feb 27, 2020 15:14
I love git and GitHub, and I can certainly appreciate the usefullness of .gitignore, but there are times when I’d really like to move an ENTIRE project to a new home. I have in my head a process that might play out like this… Fetch a list of all the files and directories that .gitignore is ignoring. Pass that list to a tar or gzip command (maybe two of them) with encryption to create a secure, compressed archive. Commit the archive to the project repo in GitHub, or keep it in a safe place for restoration in the future. ...
How to Work with Git 5 min read Nov 19, 2019 | Updated: Nov 20, 2019 15:33
Credits: This document is an abstraction of some fine documentation authored and posted by my ICG colleague and friend, David Keiser-Clark. ICG Git Workflow: How to work with Git The examples in this document use my work with the Islandora Collaboration Group’s (ICG) ISLE-Drupal-Build-Tools repository, as well as my fork and local clone of that repository. I recommend having a look at the GitHub Glossary for a list of terms used frequently in this post, and many of the referenced documents. ...
DG's ISLE Git Workflow 1 min read Nov 12, 2019
For some time now Digital.Grinnell has been using ISLE in production, with an instance that was built from a “non-standard” workflow, one that was a little different than the Git workflow established in the ISLE install docs. Consequently, DG’s situation is a little different than what’s documented for ISLE, so my mission here is to describe and execute the steps I’m taking to get back into the documented workflow. The steps will involve and achieve the following: Establish a working, local instance of my production DG site with an ISLE-1. ...
Building My `dg-islandora` Code Repository 2 min read Aug 16, 2019 | Updated: Nov 5, 2019 21:00
As promised in post 037, this post combines elements of post 021 with updated post 034 to create a “customized” local ISLE instance with features of Digital.Grinnell. In this November 2019 update I’m building the repository on my MacBook ma7053 using ISLE-1.3.0. The target of this endeavor will be a properly populated Digital.Grinnell custom Islandora code repository featuring ISLE-1.3.0 code. Process Overview I believe the process I need to engage here can be outlined like this: Repeat or follow-up on post 034. ...