Created
January 11, 2023 20:32
-
-
Save infojunkie/7554ff8ab1c54160cc88052a167b673e to your computer and use it in GitHub Desktop.
git-update updates all repos and prunes the stale branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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