Skip to content

Instantly share code, notes, and snippets.

@rubensanroman
Created April 4, 2012 11:20
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 rubensanroman/2300435 to your computer and use it in GitHub Desktop.
Save rubensanroman/2300435 to your computer and use it in GitHub Desktop.
git-transmit
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment