Use a git running on a remote server

Christian Seidlitz January 16, 2014

Hi!

We have a mixed environment: our servers running linux with webserver in the backend and the comuters running our IDE as developers frontend.
We are currently using a windows share on the linux system to work with the sources from the windows system. That - so far - works great.

The problem is, that git runs horrobly slow when executed on windows and scanning files over the share.

It would be so great when we could just set up an ssh-connection to the server and execute the git commands directly on the target mashine.

Is that maybe already possible, and if not, wouldnt it be quite easy to implement?

Regards,

Christian

2 answers

0 votes
Christian Seidlitz January 16, 2014

No it's not like that.

Normally every developer gets an own server. Normally ther is no risk of two people working on the same file.

Never the less it's not more or less risky than working with a file share is anyway.

Think of it as if the server is the linux part of the same single-user development system :)

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2014

It sounds like your source code is stored in a single location, and all developers modify it on that same location.

That is very risky. What happens if multiple developers are editing different parts of the same file at the same time? When the second one saves, it will overwrite the changes from the first.

Git is designed to solve this problem by hosting copies of the repository on each developer's machine. developers can make and commit changes locally, then merge in simultaneous changes made by other developers before pushing to the linux server.

Christian Seidlitz January 16, 2014

No it's not like that.

Normally every developer gets an own server. Ther is no (high) risk of two people working on the same file.

Never the less it's not more or less risky than working with a file share is anyway.

Think of it as if the server is the linux part of the same single-user development system :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events