Skip to content

Instantly share code, notes, and snippets.

Created December 4, 2015 09:37
Show Gist options
  • Save anonymous/9c9667882af04c7db157 to your computer and use it in GitHub Desktop.
Save anonymous/9c9667882af04c7db157 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Dec 4, 2015.
    12 changes: 12 additions & 0 deletions keep-fetching.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash

    dir=${1:-.}

    cd $dir
    git status --short 2

    if [ $? -ne 0 ]; then
    exit 1
    fi

    while :; do git fetch; echo -n "."; sleep 60; done