Use a git running on a remote server

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

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.

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 :)

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 :)

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

256 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot