Skip to content

Instantly share code, notes, and snippets.

@timabell
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timabell/d22c2d5b65edc74593a1 to your computer and use it in GitHub Desktop.
Save timabell/d22c2d5b65edc74593a1 to your computer and use it in GitHub Desktop.
git-tfs scripts
#!/bin/sh -v
git branch -D fire 2>&1 > /dev/null
git branch fire
time git tfs rcheckin
git branch -D fired 2>&1 > /dev/null
git branch fired
git poll
#!/bin/sh
title="polling tfs"
# http://www.subfocal.net/post/44278880990/stupid-bash-tricks-show-git-branch-in-your-window
echo -ne "\033]2;$title\007"
while true
do
date
echo "Polling servers..."
git tfs fetch --all
echo "Sleeping."
sleep 900 # 15 mins
git gc
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment