C
C
casuals2011-10-09 00:17:29
git
casuals, 2011-10-09 00:17:29

GIT : using a remote repository

There is a server on which I created the project, added it to the repository, etc.

I have another computer, I want to upload this project to it, edit it and commit it back to the server, as I did with SVN. I can’t google how I can perform this step with a checkout from a remote repository ...

And in general, can someone explain in a nutshell what is the fundamental difference between Git and SVN?

Thank you.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
S
sl_bug, 2011-10-09
@sl_bug

git clone %url%

A
Akson87, 2011-10-09
@Akson87

1) git clone will merge the code from the server
2) You will update it
3) git push will upload your data to the server.

C
CLR, 2011-10-09
@CLR

githowto.com The
fundamental difference is that git is a distributed system.

S
Sergey, 2011-10-09
@seriyPS

can gitosis help?

A
alexpogodin, 2011-10-09
@alexpogodin

If you have SSH access to the machine from which you are going to clone the repository, then you can work via ssh:
$ git clone [email protected]:/absolute/path/to/repo

D
Dmitry Shvalyov, 2011-10-10
@dshster

By the way, a catch-up question, so as not to produce similar topics - if I don’t have git on a remote server and it’s impossible to put it there (normal virtual hosting), but I have access via ssh, can I create a git repository there? My attempts resulted in an error in finding the git-upload (receive) file on the remote server. Path does not change there either. Mounting remote folders can and will save, but it's not interesting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question