A bash script to create pull requests for setting up a repo the old Spearbit way
- be sure you have gh installed if you want the script to create PR's (optional)
Mac
brew install gh
- Create new empty repo on github
- mkdir and cd into the new folder
mkdir <insert repo name>
cd <insert repo name>
- Git init, set origin, push first commit to
main
touch README.md
git init
git add README.md
git commit -m "initial commit"
git branch -M main
git remote add origin [email protected]:<insert org name>/<insert repo name>.git
git push -u origin main
- create new folders and copy files example:
folder1
├── folder1file1.txt
├── folder1file2.txt
└── folder1file3.txt
folder2
├── folder2file1.txt
└── folder2file2.txt
folder3
└── folder3file1.txt
- Save the
makeprs.sh
script somewhere. It can go in the current dir - run the script - that's it
bash makeprs.sh
The script will iterate through each folder and create a new branch and PR with the name of the branch. The PR will include all files in the folder.

