Git

Pull from multiple repositories

Published on

A tip for when you have a list of git repositories to update: find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git pull && cd .." \; The \( ! -name . \) pattern is used to skip executing the command inside the . folder.

Empty commit

Published on

Sometimes you just need to make an empty commit to trigger a CI pipeline or a webhook. git commit --allow-empty -m "Trigger CI"