Skip to content

Instantly share code, notes, and snippets.

@AppleBoiy
Created January 26, 2024 09:35
Show Gist options
  • Save AppleBoiy/6f07cdfab231ee1e7f1226be59e3802c to your computer and use it in GitHub Desktop.
Save AppleBoiy/6f07cdfab231ee1e7f1226be59e3802c to your computer and use it in GitHub Desktop.
Git w/ submodules script
clear:
find . -name "__pycache__" -exec rm -rf {} \;
find . -name ".DS_Store" -exec rm -rf {} \;
fetp:
git fetch && git pull
save:
git add . && git commit -m "$(msg)" && git push
subsave:
git submodule foreach 'git add . && git diff-index --quiet HEAD || git commit -m "~ chore" && git push || true'
git add . && git diff-index --quiet HEAD || git commit -m "lazy commit" && git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment