Skip to content

Instantly share code, notes, and snippets.

@subtleGradient
Created April 26, 2010 19:11
Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save subtleGradient/379750 to your computer and use it in GitHub Desktop.
Save subtleGradient/379750 to your computer and use it in GitHub Desktop.
git-transmit opens your recently modified files using Panic's Transmit.app DockSend
#!/usr/bin/env bash
# author: Thomas Aylott SubtleGradient.com
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
@billkeller
Copy link

@subtleGradient Thanks for this, it's great!

@dotdreaming
Copy link

@subtleGradient thanks for this, its great! I am also trying to configure this to deploy to specific ftp server/transmit favourites. It would be cool if I could get to check for a environment argument e.g $ git-transmit dev

@dancourse did you manage to get this to work with specific Transmit favourite? At the moment the script will deploy to all favourites.

@quickshiftin
Copy link

Hey guys, checkout the fork I just uploaded. It's aims to be smart about only pushing files that have changed by using a local tag to track where the repo was at each time you do a push. https://gist.github.com/quickshiftin/8809435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment