git¶
Run a git command across all repositories.
Usage¶
Description¶
The git command executes any git subcommand in the root repository first, then in all sub-repositories. This is useful for performing git operations consistently across your entire workspace.
Arguments¶
| Argument | Description |
|---|---|
GIT_ARGS |
Any valid git command and arguments |
Examples¶
Pull latest changes¶
Check status of all repos¶
Fetch from remote¶
Push changes¶
Push a new branch to origin¶
Create and checkout a branch¶
View recent commits¶
Stash changes¶
Apply stashed changes¶
Execution Order¶
- The git command runs in the root repository first
- Then it runs in each sub-repository in order
Output from each repository is displayed with the repository name as a header.
Requirements¶
- All repositories must be on the same branch before running git commands
- This validation ensures consistency across your workspace
Error Handling¶
If repositories are on different branches, the command will fail with an error. Use multi set-branch to synchronize branches first:
Notes¶
- Any valid git command works with
multi git - The command passes arguments directly to git, so all git options are supported
- Interactive git commands (like
git rebase -i) are not supported