Compare commits
1 Commits
main
...
sync-script
| Author | SHA1 | Date | |
|---|---|---|---|
| 49b80c3ef0 |
Executable
+16
@@ -0,0 +1,16 @@
|
||||
## This script syncs all five repositories to the current state of main.
|
||||
## It will stash changes on the current branch, switch to main, pull and remain on main.
|
||||
|
||||
echo "Syncing all repositories to main"
|
||||
|
||||
# for each folder in the above directory
|
||||
cd ..
|
||||
for d in */ ; do
|
||||
cd $d
|
||||
echo "Syncing $d"
|
||||
echo "current branch: $(git rev-parse --abbrev-ref HEAD)"
|
||||
git stash
|
||||
git checkout main
|
||||
git pull
|
||||
cd ..
|
||||
done
|
||||
Reference in New Issue
Block a user