What does this script do?
This script goes through the immediate subdirectories of a directory. If it is a git repository it will execute a git pull command.
Who is this script for?
This script is for people who have many Git repositories in a folder and don't want to manually pull them all.
Why was this script made?
This script was made primarily to practise bash scripting, but it is functional.
You must have Git installed, but that is probably the case.
Instructions for advanced users
Clone the repo, move the script to the parent folder where you keep all your repos in, execute the script.
Instructions for beginners
- Open the terminal by either searching for it or using strg+alt+t
- Clone the repository to where you keep your other repositories:
git clone git@github.com:AlphaLEXray/bulk-git-pull.git - Change into the directory:
cd bulk-git-pull/ - Move the script up one directory:
mv bulk-git-pull.bash ../ - Give the script execution permission:
sudo chmod +x bulk-git-pull.bashand enter your password when prompted - Run the script:
./bulk-git-pull.bash
Optionally:
- Remove execution permission by running
sudo chmod -x git-change-name-email-script.bash - Move the script back to its directory:
mv bulk-git-pull.bash bulk-git-pull/