Z
Z
zhdoon2018-09-18 20:17:53
git
zhdoon, 2018-09-18 20:17:53

I don’t understand why bitbucket (github) is needed when developing on Bitrix?

There is a website (conditional prod) on tsmsk (Bitrix), folder + database.
I usually do this:
1. Write a gitignor
2. Initiate a git
3. Create the first commit
4. Copy the folder with the site and the .git inside to the test server (I also take the database)
5. Write the code on the test, push it to production.
If I work not alone, then we deploy several test sites based on the sale and at the same time push everything to the prod (settlement of conflicts, if any).
But I met a different approach to organizing joint work.
P 1. - 3. like mine, and then the .git folder is sent to a pre-created repository on bitbucket and development is carried out through it.
Bitbucket only stores the code that is under version control. There is nothing that is written in gitignor, and this may be critically lacking for deploying and running a site on a test (configs, htaccess, etc.).
Those git clone from bitbucket will not deploy the entire project, but will take only part of the project, and in any case, you need to completely copy the folder with the site from the sale to the test.
Actually, the question is - why, with this approach, is there an extra link in the form of a bitbucket? What is the convenience?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
oh_shi, 2018-09-18
@oh_shi

When developing on Bitrix, as well as on normal platforms, git is of great benefit and convenience for developers:
- to find out the exact moment when it became even worse than it was
- to find out who specifically arranged it
- to return from this state with one command
- but in a good way, it would be possible to check in advance who piled up what before the deployment
. And we haven’t even reached the branches yet ...
And how to properly deploy the application, and how to work with confidential files that are not stored in the repository, this is a separate topic for discussion.

N
nic777, 2018-11-02
@nic777

When developing on Bitrix, as well as on normal platforms

Five points! ))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question