D
D
dinlike2022-03-13 23:18:34
git
dinlike, 2022-03-13 23:18:34

How to push a subfolder to a remote Git repo?

Hey!
I had this question: is it possible to create a repository in the main park, and push only files from a subfolder.

The essence of the problem is that after building the project, the build is deleted and recreated. I decided to initialize git in the public folder of the builder, in which the build folder is created, which already contains index.html, etc.

Can I only push files that are in the build subfolder to the repository?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-03-14
@dinlike

It makes no sense to push only build into the repository.
Upload normal sources to the cloud.
And if later you need, for example, to upload a new build to gh pages - create a new turnip for this and push there automatically through gh actions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question