Is there a way to create a repository on a remote server without connecting via ssh?
They say that there is such an opportunity, but how many Google did not find anything like it.

There phpGit (its fork https://github.com/tpruvot/gitPhp ), which has long been bent. In the web panel itself there are no buttons for adding repositories either (like on a githaba or bitbacket)

  • 2
    it all depends on the type of server. - KoVadim
  • one
    git is a simplified set of files. The type of file storage interaction does not matter if you have access rights. @KoVadim Only the type of connection to the file storage depends on the type of server - Mikhail Alekseevich
  • @ MikhailAlekseevich, the fact of the matter is that I don’t have access for ssh connection. If it were, it would do everything as usual - git init --bare - XYZ
  • 3
    on the type of git server used. That is, gitolite, gitlab, github, and the like - KoVadim
  • one
    Access is only for a sysadmin - the case is small: it remains to crack the server and create there all that is required. at least "with ssh", even "without." - aleksandr barakin

1 answer 1

Does not exist. Git is a set of commands that are executed from the command line, but you do not have access to the command line.

In principle, if you have access to fill sites (for example, via FTP or there is some kind of file uploader in the admin panel), you can create a repository locally via git init , and then transfer files to the server.

This will be exactly the same result as if you had executed such a command on the server.

Let's pay attention only to what.

Firstly, the server may find that git is not installed — you don’t know about it at all, right?

And, secondly, how are you going to use this repository later? Through exec to execute commands on the server through the web admin?

In my opinion, so-so idea. Better not to stint on your own hosting, where you can fully use the server.