A
A
albertalexandrov2018-03-24 11:59:11
git
albertalexandrov, 2018-03-24 11:59:11

How to do git pull on the server?

Hello!
Please tell me how to do git pull on hosting?
What I did:
1. created a project on the local machine.
2. uploaded to gitlab https://gitlab.com/rozalina1996/realestate.
3. generated a public key on the hosting and added it to gitlab.
4. created a "bare" repository on the hosting with the command git clone --bare https://gitlab.com/rozalina1996/realestate.git
5. Now I have a realestate.git file on the hosting
5ab6133403b09842848561.jpeg
What to do next - I do not quite understand. I tried as per instructions https://git-scm.com/book/ru/v1/Git-on-server-set... to do:

scp -r realestate.git yakhshisarova.ru:/private/realestate

however, an error occurs:
scp: /private/realestate: No such file or directory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
toxa82, 2018-03-24
@toxa82

If you want to update the code on the skver through a git pull, then you do not need an empty repository there, but a regular one with a working directory. Therefore, on the server you need to do the usual git clone

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question