public
Created

git-transmit

  • Download Gist
git.transmit.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/usr/bin/env bash
# author: Thomas Aylott SubtleGradient.com
#
# If you're on a mac and have Transmit, I'd recommend the following git-tranmit script (https://gist.github.com/379750).
# It uses # DockSend to send only the last updated files. If you're not familiar with DockSend, check out
# http://www.panic.com/blog/2010/11/15-secrets-of-transmit/.
#
# Setup:
#
# List item
# cp git-transit /usr/sbin/.
# cd /usr/sbin
# chmod +x git-transmit
# Setup drop send for your live app
# Run git-transmit in your git repository.
#
 
echo "Transmitting"
for i in `git log -${1:-1} $2 --name-only|grep -E '^[^ ]+$'|sort|uniq`; do
if [[ -e $i ]]; then
echo " $i"
open -a Transmit $i
fi
done

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.