Search code examples
gitusingatlassian-sourcetree

SourceTree connecting to a server ip


I need help with something(duh).

For work I have to connect to a gitrepostery. The part of the public key is done, however the only things i got are a server ip, a git repostery and a user name. However, i can't connect to the repostery, simply stating that the server doesnt exit. I have tried filling the IP, the repostery and the user name, I've tried the PROTOCOL stuff, doens't work and i'm desperate. Can you guys please help me? The server ip looks like this:

12.34.56.789 (this isn't the real one, just an example ofc)

Thanks in advance and have a nice day!


Solution

  • You should use the right url, and it depends on which protocol you are using.

    via ssh

    git@IP:REPO_NAME.git
    

    If you want to use ssh, you need to set your ssh key first.

    via https

    https://IP/REPO_NAME.git