Skip to content

Instantly share code, notes, and snippets.

@yene
Created April 9, 2015 18:43
Show Gist options
  • Save yene/39bd8c79798f8b202ae1 to your computer and use it in GitHub Desktop.
Save yene/39bd8c79798f8b202ae1 to your computer and use it in GitHub Desktop.
FTP upload master branch
#!/bin/bash
git clone -b master --single-branch . temp
cd temp
find . -type f -exec curl -u USER:PASSWORD --ftp-create-dirs -T {} ftp://server/path/to/www/{} \;
rm -rf temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment