Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question