Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using my own hosted repository in Source Tree

Ashley Mosuro November 7, 2013

Hi there,

I'm fairly new to git and Source Tree in general, so apologies if I'm missing something blindingly obvious here!

In the past, I've easily been able to add a Bitbucket repository to my Source Tree mac app, but now I'm trying to add a remote repository on my own server that I've created without using Bitbucket.

My first question is if this is even possible?

If so, I must be getting the repository URL wrong, because whenever I try to add a repository in Source tree it's coming back saying 'This is not a valid source path / URL'.

The problem is, I'm not sure if it's an authentication issue or the fact that I'm just putting the wrong URL syntax in.

Again, I'm quite new to this so I can imagine I'm just getting the syntax wrong for the URL.

Here's the error I get when putting this URL in the Source Path/URL, myusername@myipaddress:public_html/origin.git :

/var/sites/m/mywebsite.com/.bashrc: line 41: ps: command not found
Enter passphrase for /var/sites/m/mywebsite.com/.ssh/id_rsa: fatal: protocol error: bad line length character: Init
fatal: 'public_html/origin.git' does not appear to be a git repository
/var/sites/m/mywebsite.com/.bashrc: line 41: ps: command not found
Enter passphrase for /var/sites/m/mywebsite.com/.ssh/id_rsa: fatal: protocol error: bad line length character: Init
fatal: 'public_html/origin.git' does not appear to be a git repository
/var/sites/m/mywebsite.com/.bashrc: line 41: ps: command not found
Enter passphrase for /var/sites/m/mywebsite.com/.ssh/id_rsa: fatal: protocol error: bad line length character: Init
fatal: 'public_html/origin.git' does not appear to be a git repository

1 answer

1 accepted

0 votes
Answer accepted
Peter Van de Voorde
Community Champion
November 7, 2013

Hi Ashley,

I think there is something wrong with your git server, based on the error you get (bad line length character). Maybe this can help you : http://stackoverflow.com/questions/8170436/git-remote-error-fatal-protocol-error-bad-line-length-character-unab

Best regards,

Peter

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events