Connect SourceTree to VPS using SSH

Hi, I have a VPS that I connect & work over SSH. In this server I have a repository, cloned from GitHub.
How I can connect with SourceTree on this machine, locate the git project and then work with SourceTree?

Many thanks,
Apostolos 

4 answers

1 accepted

SourceTree can not manage a repository over ssh.

The easiest way to manage a remote repo over ssh is to use the command line git tool (connect via SSH, then use git commands).

If you need a GUI, you can clone the repo locally, or install sourcetree remotely, or try to find another tool.

Hi @Seth, thanks for the reply. Currently I work with putty + git commands but after I tried the SourceTree I become addicted (lazy addicted)!

I've heard a lot of people having problems trying to use SourceTree with repos on network mounted drives - it's not possible to just clone your repo to your workstation and work on it there?

0 votes

Hi Apostolos, 

 

If you add a remote repo on your SourceTree should work, and you could work by command line accessing SourceTree Terminal. 

Please take a look on these links:

http://byteblink.com/blog/2013/10/26/setting-up-git-with-sourcetree-and-a-remote-dreamhost-repository-on-mac-osx-part-2

https://answers.atlassian.com/questions/272321/sourcetree-how-do-i-connect-a-local-clone-with-a-remote-repo-on-stash-with-ssh

 

Cheers, 
Renato 

That allows him to work locally, but he can't use sourcetree or the local terminal to make his remote interact with its remote.

Hi @Tim Crall, my workflow does not involve anything local except tools (IDEs, DB managers, etc.) The projects are on the remote server the tools work over SSH. It's a popular approach these days for web dev and there are many tools that direct you this way, like Vagrant (local VM but you work over SSH).
It will be very nice to see a feature like this smile

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 ...

229 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