Last active
February 7, 2020 01:42
-
-
Save FredLackeyOfficial/b96a5ff10e5390890cf97105726f71de to your computer and use it in GitHub Desktop.
Push EOD changes to Git
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
#!/bin/bash | |
CUR_DIR=$(pwd) | |
echo "Committing end of day changes ..." | |
for i in $(find . -name ".git" | cut -c 3-); do | |
echo ""; | |
echo "Committing $i ..."; | |
cd "$i"; | |
cd ..; | |
git config user.email "fred.lackey@gmail.com"; | |
git config user.name "Fred Lackey"; | |
git add -A; | |
git commit -am "eod"; | |
git push origin master; | |
cd $CUR_DIR | |
done | |
echo "Complete!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment