Skip to content

Instantly share code, notes, and snippets.

@organom
Created October 20, 2020 17:28
Show Gist options
  • Save organom/876b674fdddeb9cd89f300ad6419b441 to your computer and use it in GitHub Desktop.
Save organom/876b674fdddeb9cd89f300ad6419b441 to your computer and use it in GitHub Desktop.
Lists all changes from all repositories present in the current folder
#!/bin/bash
find . -name .git -type d -exec sh -c '(cd {}; cd ..; git_temp=`git status -s`; if [ -n "${git_temp}" ]; then (echo $PWD && git status -s && echo); fi;)' \;
@organom
Copy link
Author

organom commented Dec 2, 2020

Display the state if all git folders present in the current path

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