Created
September 30, 2018 02:44
-
-
Save timothystewart6/36423db963f88ff1547bcc65a282da8a to your computer and use it in GitHub Desktop.
Do something per directory
This file contains hidden or 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
# 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