Last active
August 29, 2015 14:11
-
-
Save timabell/d22c2d5b65edc74593a1 to your computer and use it in GitHub Desktop.
git-tfs scripts
This file contains 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
#!/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 |
This file contains 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
#!/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