A
A
Andrey Enkin2020-05-18 10:32:23
git
Andrey Enkin, 2020-05-18 10:32:23

How to change the path for some files when git-ftp is uploaded?

When uploading via ftp, git-ftp reproduces the file structure of the local repository on the remote one.
Let it be like this on the local machine
====
root
--folder1
--folder2
--folder3
====

on the remote machine:
====
root
--folder1
--anotherfolder
--folder3
I need all files and folders from folder2 got into anotherfolder on a remote machine

git-ftp knows how to use hooks, but I don't know how to use them for such a task. maybe there is already a solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question