Answer the question
In order to leave comments, you need to log in
Git and deploy advantages?
Good afternoon.
Is it possible to solve the following problem with git?
you need to be able to deploy certain commits to production only.
it is clear that you can make a diff out of them and impose it on the working tree, but is there another way? built-in so to speak ...
Thank you.
Answer the question
In order to leave comments, you need to log in
You can simply throw individual commits with cherry-pick into the production branch and use it for the release.
In the git, create a branch that will be used for publication, respectively, in this branch you make commits that need to be published, and deploy this branch when pushing as described in the git website howto
For each separate functionality, you make a separate branch in which this functionality will be developed. Once everything on that branch is working properly and it's been tested, merge it into the production branch and then delete the branch itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question