The batch to execute git commands on multiple repositories.
- The GIT Client is installed.
- The GIT Client is configured properly, which means you can run the git commands successfully.
-
Copy the gitb.bat to your local folder which contains multiple git repositories.
-
Open a terminal, and locate to the folder.
-
Then you can type the gitb commands same as how you type the git commands.
For example:
The commands below will pull and rebase the code for all the code repositories under current folder.
gitb pull --rebase --autostash
All the steps are same as the steps for Windows, the only difference is gitb.sh will be used instead of gitb.bat.