A
A
Alexander2020-02-15 22:42:07
git
Alexander, 2020-02-15 22:42:07

How to set up automatic paging of commits?

Hello.

Tell me, please, how to make automatic download of new commits?

Example:
There are 2 test / production servers and 2 dev / master branches, respectively. We work with dev, make commits, merge dev with master, and we need changes to appear on the combat one immediately. What is it configured with?

Didn't find anything on google.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Askhat Bikmetov, 2020-02-15
@Alex1237

Git Hooks https://git-scm.com/book/en/v2/Customizing-Git-Git... There
are client and server hooks. Can be performed before and after almost any action with the repository. You most likely need a post receive hook.
The hook itself is just a script in any language supported by the OS, when launched, it will receive some information about the event as arguments, based on which you can validate the operation and perform any other actions.

V
Vladimir, 2020-02-15
@Casufi

https://docs.gitlab.com/ee/ci/

C
coderisimo, 2020-02-15
@coderisimo

There is such a thing HOOKIES
There are own buns for this on bitbucket. The essence is similar, they are easy to set up and work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question