Last active
May 28, 2025 07:43
-
-
Save zeroby0/b83ed83e0188f624f877f45890fe18b5 to your computer and use it in GitHub Desktop.
Automatic, periodic commit and push to GitHub.
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 program automatically commits changes to github every | |
| # 10 seconds. Because I've been clumsy in the past and lost | |
| # changes I made to a document. I use it when I'm writing an | |
| # article or something like that. I used it when writing a | |
| # paper for my HSS course. https://github.com/zeroby0/Vegas | |
| # | |
| # Btw, this code is released into the public domain. | |
| # Read https://gist.github.com/zeroby0/5de2005674d234b48f41ff75181f07a3 | |
| # for the full text. | |
| # | |
| while [ 1 ]; do | |
| git add -A && git commit -m "Autocommit at $(date)"; | |
| git push -u origin master | |
| sleep 10; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment