Dependencies:
- Gum
- Bash shell
All git repos in a folder (to be worked on). Example: ~/repos.
Make sure to copy these scripts into this folder
Copy the following and update the folder path lin line 1 before running
ROOT_FOLDER="<folder_name>"
curl https://gist.githubusercontent.com/pradyumnac/25840aa2eb847551364883a820df7ddb/raw/e9cf0e79a1f3092a5fab3dc43fdee1c015d13c40/pullrepos.sh -o $ROOT_FOLDER/pullrepos.sh
curl https://gist.githubusercontent.com/pradyumnac/25840aa2eb847551364883a820df7ddb/raw/ec965681aaeeab972a65c743f111e60373403f59/pushrepos.sh -o $ROOT_FOLDER/pushrepos.sh
curl https://gist.githubusercontent.com/pradyumnac/25840aa2eb847551364883a820df7ddb/raw/ec965681aaeeab972a65c743f111e60373403f59/repostatus.sh -o $ROOT_FOLDER/repostatus.sh
chmod +x pullrepos.sh pushrepos.sh repostatus.sh
Get all repos in folder where files are not stage/committed
./repostatus.sh
Push all folders selected
This pull up an interactive list of repos to choose. you can choose multiple using tab and navigate using arrows
./pushrepos.sh
Pushes entered repos to default their remote branch
./pushrepos.sh -c <repo1> [<repo2>..]
Make sure that default branch is selected using git push -u
Push all folders selected
This pull up an interactive list of repos to choose. you can choose multiple using tab and navigate using arrows
./pullrepos.sh
Pulls entered repos from default their remote branch
./pullrepos.sh -c <repo1> [<repo2>..]