Created
May 2, 2024 22:21
-
-
Save kodie/9ec05de40bc276d34c6e4e5ddff9dc11 to your computer and use it in GitHub Desktop.
A small one-liner bash script that will scan through all of the directories inside of the current directory and let you know if they have any changes not yet pushed up to your git repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for d in */ ; do echo "Checking for changes in $d..."; cd $d; if [[ `git status --porcelain` ]]; then echo "\033[0;32mChanges found in $d\033[0m"; fi; cd ../; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote this while migrating to a new computer. I wanted to make sure I didn't leave anything behind. (Ideally I would have just already pushed these up to git but it happens)