P
P
plx496382021-05-08 16:39:26
git
plx49638, 2021-05-08 16:39:26

How to set up git on the server so that data appears on it when pushing?

What am I doing wrong?
Put Git on the server.
Created a folder for the repository.
I went to the pack and ran the command.
git init --bare .git
A .git folder appeared in the repository folder.
60969342af5af853432484.png

In phpstorm I connect to the repository, commit and push. The data is gone.

60969413b5ddc424391691.png

But the sent files do not appear in the folder itself on the server.
Although at the same time, if you clone the repository from the server, then everything comes.

How to make files appear immediately on the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BorLaze, 2021-05-08
@BorLaze

on the server, you need to do a git pull to pull the changes
themselves, they will not appear,
but, in general, it is a very bad idea to do delivery in this way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question