Skip to content

Instantly share code, notes, and snippets.

@havron
Created October 12, 2018 19:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save havron/9a41f7c218b2e5dd89130effa0b0a630 to your computer and use it in GitHub Desktop.
Save havron/9a41f7c218b2e5dd89130effa0b0a630 to your computer and use it in GitHub Desktop.
Leave no repo behind!
commit_msg="THIS MACHINE IS IN PERIL: NO REPOS WILL BE LEFT BEHIND!"
echo "$commit_msg"
find ~ -name ".git" -type d -exec bash -c "echo 'Saving {} from peril!' \
&& cd '{}'/.. && git add -A && git commit -m "$commit_msg"\
&& git push" \;
echo "WHAT ARE YOU DOING STAYING HERE?? RUN!!!"
@havron
Copy link
Author

havron commented Oct 12, 2018

image

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