WordPress Developer Ukraine, Kyiv
git filter-repo: Removing Sensitive Files and Rewriting History

git filter-repo: Removing Sensitive Files and Rewriting History

git filter-repo: remove sensitive files from Git history A wp-config.php with production credentials, an .env file or a private key committed by accident does not go away with a new commit that deletes it: the file stays in every older commit, and anyone who clones the repository can get it. Removing it means rewriting the…
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…
GitHub CLI (gh) for WordPress Plugin Release Automation

GitHub CLI (gh) for WordPress Plugin Release Automation

GitHub CLI (gh) for plugin release automation A plugin release on GitHub is a series of clicks: check that CI is green on the release commit, create the tag, write the release notes, upload the ZIP, maybe update a draft into a final release. The GitHub CLI gh does each of these in one command,…