M
M
Monitorkin2018-03-07 22:04:40
git
Monitorkin, 2018-03-07 22:04:40

How to selectively push your folders to 2 different servers, if on the local machine all the folders are together under GIT?

I have a modular system and it’s easier for me to work on a local machine where all the modules in the system are installed, but different sites need different sets of modules and I would like to push only its modules to a specific site using GIT.
For example, there is:
Local PC, folders on it:
module1
module2
module3,
Servers:
Server1 with folders: module1, module2,
Server2 with folders: module3.
Is it possible to use GIT to push only the necessary folders to the servers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2018-03-07
@Monitorkin

Are your modules submodules of the git? Or are they all in 1 turnip?
If in one - then only with crutches. Or remake it for submodules.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question