Skip to content

Instantly share code, notes, and snippets.

@wouterd
Created November 1, 2017 13:14
Show Gist options
  • Save wouterd/6151071722db0e3749966f0e814a6e40 to your computer and use it in GitHub Desktop.
Save wouterd/6151071722db0e3749966f0e814a6e40 to your computer and use it in GitHub Desktop.
Shell Oneliners

Find all git repos that have local changes that need pushing

find . -name .git | xargs -I % sh -c " git -C %/.. diff --exit-code > /dev/null || echo % "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment