S
S
suhuxa12018-03-18 19:09:30
git
suhuxa1, 2018-03-18 19:09:30

How to get git in your work?

Good afternoon!
I'll tell you how I'm working now, and how I plan to, and you, please, tell me if I'm thinking right and haven't forgotten anything?
At the moment, the development of services is carried out as follows: I create a new project, I work through a vagrant. IDE - phpstorm. Thanks to the internal deployment, I work like this: I set up ssh access, choose the path on the server, set up exclusion files. On the hosting, accordingly, I manually add a subdomain, create a database, and by clicking on the deploy button, my service is now on the hosting. I would like to wedge git into this structure, how to do it correctly? Do commit exactly before the moment of deployment to the server? Is it a normal process for me? Or, maybe, the deployment has been carried out somehow differently for a long time, or the preparation of the project is carried out much faster than in my case? Need your criticism and answer on the git. Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GavriKos, 2018-03-18
@suhuxa1

Read about gitflow, for example.
The direct answer about the commit - you can commit at least for every sneeze.

D
Denis, 2018-03-18
@sidni

much faster))))
well, if you don’t have problems with branches (such as feature, dev, production) and commit to the master, then in principle it will go

A
Alexey Melnikov, 2018-03-22
@almel

You are developing in the develop branch.
Write tests, set up CI.
I'm not a backend developer, but there is an auto-deploy in your case too.
With a margin in the Master - CI conducts tests, collects, upon successful completion of the previous stages - deploy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question