Using git on remote server


Our company uses a local server, what every developer uses every day. We SSH to it and write the code there.

I would like to ask, if is it possible to use SourceTree to connect to this development server through SSH to apply git commands there?


Daniel S. (Mito Europe Ltd.)

4 answers

1 accepted

0 votes
Accepted answer

It does really matter. SourceTree only runs local Git commands. Your devs could attempt to use SourceTree (or any other local Git client) by mounting their home directory on their local machine. However, many people have had significant problems with this type of setup, because Git is designed to work with truly local data.

Some questions I've participated in regarding this type of setup:

So you are all working on and editing a single copy of the code? What happens if two people work on the same file at the same time? What do you do if a developer needs to work outside the office, or if part of your networking equipment fails?

No, every developer has it's own account, and under the own home directory the own working copy. And we can use this server from outside. But this dowsn't really matter.

Is there a way to use this remote server from my local PC's SourceTree?

We tried ungit as an alternative, but it's not so reliable so we need a solution that could connect to this remote development server and use git there. Currently we can only use git commands from the terminal.

"SourceTree only runs local Git commands." :(
Thanks Seth!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

975 views 4 2
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