Skip to content

Instantly share code, notes, and snippets.

@timothystewart6
Created September 30, 2018 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothystewart6/36423db963f88ff1547bcc65a282da8a to your computer and use it in GitHub Desktop.
Save timothystewart6/36423db963f88ff1547bcc65a282da8a to your computer and use it in GitHub Desktop.
Do something per directory
# This is used when you want to do something per directory
# I sometimes do this to make a commit in all sub directories (which are repos)
for dir in ~/dev/work/**;
do (cd "$dir" && git commit -m "fix(something): Just fixed a bug");
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment