Skip to content

Instantly share code, notes, and snippets.

@DevEarley
Created March 31, 2022 19:56
Show Gist options
  • Save DevEarley/dd21e62402cdd9415ab1631f79fd2d9f to your computer and use it in GitHub Desktop.
Save DevEarley/dd21e62402cdd9415ab1631f79fd2d9f to your computer and use it in GitHub Desktop.
PSM - Commit and Push all Submodules
echo off
git submodule foreach "git add . || :"
git submodule foreach "git commit -m \"%*\" || :"
git submodule foreach "git push || :"
git add .
git commit -m "%*"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment