Adding a remote repository

Hi,

I'm trying to add a new remote repository but it doesn't seem to work.

Here is my situation:
I'm connected from home and want to access to the remote git repository through a VPN. The git server is hosted on a windows server. I have access to my compagny network (remotely through a VPN) and I'm able to browse the git server's folders from home with my Mac.
I have an empty folder where I would like to pull the source code from the remote repository.

So in SourceTree, I click Repository in the menu bar and repository settings. Add my new repository, which is 192.168.0.125/pmsrepos/git. Then in the left sidebar, I do a right click on my remote repository I just added and choose Pull. A new window appears and ask me to choose a remote branch to pull. The problem is the list is empty because i think it cannot access to the remote repository.

Can you tell me if it's the correct way to get the sourcecode from a remote repository? and why I cannot connect to my remote repository?

Thanks a lot for your help

Manuel

3 answers

1 accepted

Problem Solved!

Because the git server hasn't the http protocol available, so I couldn't access via http://192.168.0.125. What I did is :

- Create a mouted point (volume) with the command smb://192.168.0.125/repos/git

- Clone via this volume (git clone /Volume/repos/git)

After that everything is allright ;)

not sure if i understand your description correctly.

i am wondering where that IP 192.168.0.125 is coming from. i hope it is not the "remote" IP cause it is definitly a private net thats inside your home LAN.

that would explain why there is no content until you set up a local repository with content. that has nothing to do with your remote repository you're aiming at

The Ip 192.168.0.125 is the remote ip address, where the git repository is hosted. Moreover I setted up a local repository (empty for now) and I would like to pull the source code fron the remote git repository. About the VPN connection, yes I am able to access to the host via the Finder but not via SourceTree.

I am not quite sure what to enter as URL, I try 192.168.0.125/pmsrepos/git or git://192.168.0.125/pmsrepos/git but it doesn't work.

What I would like to do it just to retreive in a folder on my mac the source code from the git repository through a VPN. The VPN works perfectly, just the connection to the git server is an issue.

when you say VPN you should be able to access the remote host directly cause all traffic is being send though this tunnel.

You should be able to clone via an IP (as in https://192.168.0.125/blah or git://192.168.0.125/blah) so long as your VPN setup allows all traffic. You can't just add an existing working folder this way though.

Nobody? What am I suppose to write in the path:

- //192.168.0.125/pmsrepos/git

- 192.168.0.125/pmsrepos/git

- 192.168.0.125:pmsrepos/git

- etc...

Please help me, I'm sure it's just a silly issue.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
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 ...

799 views 0 4
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