Skip to content

Instantly share code, notes, and snippets.

@FredLackeyOfficial
Last active February 7, 2020 01:42
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 FredLackeyOfficial/b96a5ff10e5390890cf97105726f71de to your computer and use it in GitHub Desktop.
Save FredLackeyOfficial/b96a5ff10e5390890cf97105726f71de to your computer and use it in GitHub Desktop.
Push EOD changes to Git
#!/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