Skip to content

Instantly share code, notes, and snippets.

@borisdiakur
Last active February 11, 2016 22:09
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 borisdiakur/37b8f512f6f8865b79c7 to your computer and use it in GitHub Desktop.
Save borisdiakur/37b8f512f6f8865b79c7 to your computer and use it in GitHub Desktop.
Bash script for transmitting all changed (tracked and uncommited) files in a git repo to an ftp server via Transmits DockSend.
#!/bin/bash
#: Title : ftpush
#: Author : Boris Diakur
#: Version : 1.0
#: Description : Transmits all changed (tracked and uncommited) files to an ftp server via Transmits DockSend.
#: Options : None
for i in $(git status --short --untracked-files=no); do
if [[ -e "$i" ]]; then
echo "Transmitting $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