How to clone git to a server?

Git clone to any server? (even without git installed)

  • I've googled and searched stackoverflow quite a bit, so I hope this hasn't been asked and I just missed it. Can you clone a repository to any server/storage that you have access too? Or does this 'server' need to run git. As I understand it, it is enough that just the computer sending the commands has git? Silly question, but started git today :)

  • Answer:

    It's possible to clone into any folder structure, local or remote, to which you have access. This doesn't depend on git being installed on the target server. For example this is how I would clone a project into a Windows UNC share. git clone [email protected]:whatever //server/share/target I'm not entirely sure if that's what you mean though by "clone to any server". If not could you be a bit more specific with your question?

htdIO at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

You can use git over "dumb" Webdav (without any git code on the server side). In fact, I think you need to copy the repo manually once, then you can write to it.

ysdx

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.