Skip to content

Instantly share code, notes, and snippets.

@infojunkie
Created January 11, 2023 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infojunkie/7554ff8ab1c54160cc88052a167b673e to your computer and use it in GitHub Desktop.
Save infojunkie/7554ff8ab1c54160cc88052a167b673e to your computer and use it in GitHub Desktop.
git-update updates all repos and prunes the stale branches
alias git-update='find . -mindepth 1 -maxdepth 3 -type d -name ".git" -print -exec git -C {}/.. pull --recurse-submodule \; -exec git -C {}/.. remote prune origin \;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment