Using git on remote server

Hi,

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?

Thanks,

Daniel S. (Mito Europe Ltd.)

4 answers

1 accepted

Accepted Answer
0 votes

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:

https://answers.atlassian.com/questions/252195/use-a-git-running-on-a-remote-server

https://answers.atlassian.com/questions/275021/fatal-unable-to-write-new-index-file

https://answers.atlassian.com/questions/278410/pulling-from-remote-github-to-server

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 May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

989 views 2 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