Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push subfolder to ftp using git-ftp

How can I push only a certain subfolder (the publish folder of html5 boilerplate) to a specified ftp directory using git-ftp?

like image 989
gang Avatar asked Aug 09 '12 18:08

gang


1 Answers

There are two possibilities:

A

  1. make the publish folder a git repository.
  2. Use git ftp inside of that repo

B (much better)

use the syncroot option of git-ftp to specify the directory to sync from as if it were the git project root path. In .git/config under [git-ftp] add

syncroot = publish/
like image 108
gang Avatar answered Nov 17 '22 08:11

gang