Last active
April 24, 2025 13:19
-
-
Save obar1/771b1992368262737d9f25fcf17ce1c1 to your computer and use it in GitHub Desktop.
update 0 to 100 repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set -eox pipefail | |
update_0to100() { | |
cd ../0to100.git | |
pwd | |
git switch main | |
git pull | |
} | |
update_to_latest_0to100() { | |
echo -e "requirements.txt\nREADME.md\n.git\n.venv\n0to100\n" > exclude.txt | |
cat exclude.txt | |
rsync -av --exclude-from=exclude.txt ../0to100.git/* . | |
touch "updated_0to100@$(date +%Y%m%d%H%M%S)" | |
} | |
update_0to100 | |
cd - | |
update_to_latest_0to100 |
Author
obar1
commented
Apr 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment