I
I
Ivan2021-08-30 23:23:52
git
Ivan, 2021-08-30 23:23:52

How to push project to ssh server?

I have a Laravel project on my computer, I cloned it from Gitlab.
Now I have access to the SSH server, I connected to it via [email protected], entered the password, and logged in.
Any git command output

fatal: not a git repository (or any of the parent directories): .git

I understand the text of the error, but I do not understand what to do next. I need to push the project to this server and the project itself is already there, I just want to send the changes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Sokolov, 2021-08-30
@youmixx

Ssh is a communication protocol. By connecting to the machine via ssh, in fact, you get a terminal window on another device (on the server), roughly speaking, like a remote desktop. Therefore, on the server you need to go to the right folder, do git clone [url] and, it turns out, not push the project to the server, but pull it from the repository with the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question