Created
April 4, 2012 11:20
-
-
Save rubensanroman/2300435 to your computer and use it in GitHub Desktop.
git-transmit
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
#!/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