Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcetree over ssh for local repository?


I have a set-up where I have a remote git server, a local git/development machine running Linux, and a Windows development machine.

I generally use putty from windows to log into my local linux development machine, which is where my local git repository resides, as well as where I do my compiling, etc.

I'd like to use SourceTree on my windows development machine to manage this git repo.

It it possible to add a working tree via SSH, so that I can use windows to manage my local git repository on my linux dev machine? I don't want to have a repo on both my windows and linux dev machines, and I don't want to go through a two-stage push process.

My other option I suppose is to add my linux machine as a network drive under windows and connect that way, but it's awfully slow.


1 answer

I think it's not a supported setup. A local repo should be local in Git philosophy..

Maybe you can try one of those virtual drives that expose SSH, S3, FTP etc connections as local win drives. But you're entering in a "red" zone... if you have some network delay, or reconnection, you may end up with a corrupted repo, as git thinks it's working on a reliable disk device.

My personal advice is to clone your repo the standard way, and stay on the safe side...

Yeah, I suppose. Mind you, I'm essentially doing the same thing when I use git over ssh. What would be best is if all the processing could be done on the linux end, and SourceTree just managed it's control over ssh.

Cloning it again on the windows side isn't really a solution though, as I'd have to make changes on windows, push to my linux (to compile, etc), and then push to remote. And that's if it works, otherwise I'd have to redo on windows, push to linux, rebase, and then psuh to remote.

I see.. I'm afraid that ST can't simply route git commands over SSH to a remote server, and I don't know another gui client that is capable to do this.

Maybe you can dive into the dark side of hooks.. ;) a simple start:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Atlassian Cloud Migration

Cloud Migration preparatory checklist_Atlympics ✈

Hello Cloud migration Atlympics, This post is my entry into the #Atlympics Cloud migrations category. While, I don't boast myself as I have did or doing migrations, but this request came from o...

24 views 0 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you