Skip to content

Instantly share code, notes, and snippets.

@kodie
Created May 2, 2024 22:21
Show Gist options
  • Save kodie/9ec05de40bc276d34c6e4e5ddff9dc11 to your computer and use it in GitHub Desktop.
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.
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
@kodie
Copy link
Author

kodie commented May 2, 2024

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)

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