Skip to content

Instantly share code, notes, and snippets.

@zeroby0
Last active May 28, 2025 07:43
Show Gist options
  • Select an option

  • Save zeroby0/b83ed83e0188f624f877f45890fe18b5 to your computer and use it in GitHub Desktop.

Select an option

Save zeroby0/b83ed83e0188f624f877f45890fe18b5 to your computer and use it in GitHub Desktop.

Revisions

  1. zeroby0 revised this gist Feb 6, 2019. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions gitbackup.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,15 @@
    #
    # 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
  2. zeroby0 created this gist Sep 6, 2018.
    5 changes: 5 additions & 0 deletions gitbackup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    while [ 1 ]; do
    git add -A && git commit -m "Autocommit at $(date)";
    git push -u origin master
    sleep 10;
    done