
How to Trigger CI From Git Hooks and Webhooks the Right Way
Trigger CI from Git hooks and webhooks the right way: server-side post-receive, host webhooks, API dispatch calls, authentication and safe retries.
Tag
29 posts

Trigger CI from Git hooks and webhooks the right way: server-side post-receive, host webhooks, API dispatch calls, authentication and safe retries.

Use Git from Python with GitPython or subprocess: read status and logs, create commits, handle errors and encodings, and choose between them for scripts.

Remove a leaked secret from Git history safely: rotate the credential first, rewrite with git filter-repo, force push, clean clones and check for copies.
Stop tracking a file Git already knows with git rm --cached, keep it on disk, add it to gitignore, warn teammates, and know what history still holds.

Write gitignore patterns that match, use global and per-repository ignore files, find why a path is ignored with check-ignore, and know the limits.