Skip to content

Instantly share code, notes, and snippets.

@timabell
Last active June 1, 2016 08:56
Show Gist options
  • Save timabell/2842684 to your computer and use it in GitHub Desktop.
Save timabell/2842684 to your computer and use it in GitHub Desktop.
Poll tfs server with git-tfs
#!/bin/sh
# https://gist.github.com/timabell/2842684
# save to ~/bin/git-poll
# run with `git poll` from your git-tfs repo
# git version: https://gist.github.com/timabell/6990292
while true
do
date # note, windows (msysgit) specific syntax for printing date to console.
echo "Polling TFS server..."
git tfs fetch --all
echo "Sleeping."
sleep 1800 # half hourly
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment