git‐all - yktoo/yktools GitHub Wiki
Traverses all your Git repositories, recursively, and runs the same git
command against them.
Running git-all <command> <args...>
will search Git repositories (i.e. directories having .git
subdirectory right under them), starting from the current directory. It ignores all directories whose name starts with an underscore (_
) and everything below them, which is useful for skipping updates to things you don’t manage, like sources you’ve temporarily checked out, or projects specific to some environment.
git-all command [arg1 [arg2...]]
Where:
-
command
Command to pass togit
-
arg1...argN
Any additional arguments to be passed togit
# Show status of all repositories
git-all status
# Show short status
git-all status -s
# Pull from all default remotes
git-all pull
# Prune all orphaned remote branches
git-all remote prune origin
# Rename all remotes
git-all remote rename origin github
- This blog post for more background and examples.
- Script source code on GitHub.