Skip to content

Instantly share code, notes, and snippets.

View apnorton's full-sized avatar
:octocat:
That Gibson won't hack itself

Andrew Norton apnorton

:octocat:
That Gibson won't hack itself
View GitHub Profile
@havron
havron / inCaseOfFire.sh
Created October 12, 2018 19:00
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!!!"