WordPress Developer Ukraine, Kyiv
Git Bundle: Offline Repository Transfer and Air-Gap Deployments

Git Bundle: Offline Repository Transfer and Air-Gap Deployments

git bundle: move a repository without network access to the remote Some servers cannot reach GitHub: a client’s production network that allows only SSH from the agency’s jump host, an air-gapped intranet, a customer who receives code by file transfer. A git bundle is a single file that contains commits, branches and tags like a…
Git LFS: Tracking Large Media Files in WordPress Theme Repositories

Git LFS: Tracking Large Media Files in WordPress Theme Repositories

Git LFS for large files in WordPress theme repositories A theme repository with design source files, demo videos and font packages grows by hundreds of megabytes with every revision of a binary file, because git keeps every version in full. Cloning takes minutes, and the deploy server downloads files it never needs. Git LFS (Large…
Git Hooks with Husky and lint-staged for WordPress Projects

Git Hooks with Husky and lint-staged for WordPress Projects

Git hooks with Husky and lint-staged in a WordPress project A coding standards check in CI catches problems after the push, and the developer has to fix and push again. A pre-commit hook catches them before the commit exists. Husky installs git hooks from the repository for everybody who runs npm install, and lint-staged runs…
Git Sparse Index and Partial Clones for Large Monorepos

Git Sparse Index and Partial Clones for Large Monorepos

Partial clones and sparse checkout for large WordPress repositories A repository that holds a whole WordPress site, years of history and some committed media can reach several gigabytes. Cloning it for a one-line fix in one plugin downloads all of that. Git has two features to work with only part of a repository: a partial…
Conventional Commits and git-cliff: Automated WordPress Plugin Changelogs

Conventional Commits and git-cliff: Automated WordPress Plugin Changelog ...

Conventional Commits and git-cliff: a plugin changelog from the commit history The changelog in readme.txt is written at release time, from memory, and it shows: fixes are forgotten, internal refactorings are listed as features. If the commit messages follow a simple convention, a tool can sort them into “Features”, “Fixes” and “Breaking changes” and write…
Git Monorepo Strategy for WordPress Plugin Development

Git Monorepo Strategy for WordPress Plugin Development

A monorepo for several WordPress plugins An agency with five plugins and a shared library usually has six repositories. A change in the library means a release of the library, then a Composer update and a pull request in every plugin, and the integration tests run only after all of that. A monorepo puts all…