A collection of git commands to help managing mutliple git repositories at once.
Important
Each of the following commands will iterate over all the repositories in the given directory and execute the given command.
For each repository in the given directory, it will align the target branch to the given source branch.
swit align-branch -source <source-branch> -target <target-branch> [-directory <directory>] [-strategy <pull|merge>] [-remote <remote_name>]
Default strategy: merge Default remote: origin
Iterates all the given repositories in search of a given branch.
swit find-branch -branch <branch> [-directory <directory>]
Createe a branch in the current repository and push it to the remote.
swit create-branch -target <branch> [-source <source-branch>] [-directory <directory>]
Update the branch in the given directory. If no branch is given, it will update the current branch, otherwise will update all the matching branches (it will search with a like)
swit update-branch -directory <directory> [-branch <branch>]