V
V
Vampre2018-10-01 01:28:06
git
Vampre, 2018-10-01 01:28:06

How to update a site on a production server using GIT?

Help with git. I have a website on a local computer - I uploaded it to BitBucket, and then uploaded it to a virtual server via git clone. Now, for example, if I create a new module on my localhost, then I push it to BitBucket, but how can I update the combat version after that? Go to the server and do a pull (or fetch?), won't unnecessary differences be loaded then, because the settings file on the server is different? In general, how to update the version on the production server correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael Galyuk, 2018-10-01
@robux

First time like this:
The second and following are like this:

git pull https://github.com/Author/Framework master
или
git pull

PS Parameter "--depth=1" to download only the latest version, without all the previous history.
PS2. Before updating, make backup copies of the current settings - either in a separate folder, or simply by copying to separate files. If something frays after "pull", then you will restore it back from the copy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question