Skip to content

Instantly share code, notes, and snippets.

@obar1
Last active April 24, 2025 13:19
Show Gist options
  • Select an option

  • Save obar1/771b1992368262737d9f25fcf17ce1c1 to your computer and use it in GitHub Desktop.

Select an option

Save obar1/771b1992368262737d9f25fcf17ce1c1 to your computer and use it in GitHub Desktop.
update 0 to 100 repos
#!/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
@obar1
Copy link
Copy Markdown
Author

obar1 commented Apr 24, 2025

juse rsync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment