Skip to content

Instantly share code, notes, and snippets.

@borisdiakur

borisdiakur/ftpush

Last active Feb 11, 2016
Embed
What would you like to do?
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