Skip to content

Instantly share code, notes, and snippets.

@lotharschulz
Created December 22, 2024 21:27
Show Gist options
  • Select an option

  • Save lotharschulz/fe8fadde576fd418e2a736c8117e4916 to your computer and use it in GitHub Desktop.

Select an option

Save lotharschulz/fe8fadde576fd418e2a736c8117e4916 to your computer and use it in GitHub Desktop.

Revisions

  1. lotharschulz created this gist Dec 22, 2024.
    5 changes: 5 additions & 0 deletions pull_all_sub_directories.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash
    set -euo pipefail
    IFS=$'\n\t'

    find . -maxdepth 2 -type d -name .git -execdir sh -c "pwd && git pull" \;